mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
485 B
C++
19 lines
485 B
C++
#include <router_contact.hpp>
|
|
#include "common.hpp"
|
|
|
|
namespace llarp
|
|
{
|
|
void
|
|
RouterContact_Init(py::module& mod)
|
|
{
|
|
py::class_< RouterContact >(mod, "RouterContact")
|
|
.def(py::init<>())
|
|
.def("ReadFile", &RouterContact::Read)
|
|
.def("WriteFile", &RouterContact::Write)
|
|
.def("Verify", [](const RouterContact rc) -> bool {
|
|
const llarp_time_t now = llarp::time_now_ms();
|
|
return rc.Verify(now);
|
|
});
|
|
}
|
|
} // namespace llarp
|