reseed from SU3

This commit is contained in:
orignal 2014-12-11 15:41:04 -05:00
parent 96851ab2fd
commit 3643d2f1da
4 changed files with 142 additions and 94 deletions

View file

@ -165,6 +165,13 @@ namespace data
}
}
void NetDb::AddRouterInfo (const uint8_t * buf, int len)
{
IdentityEx identity;
identity.FromBuffer (buf, len);
AddRouterInfo (identity.GetIdentHash (), buf, len);
}
void NetDb::AddRouterInfo (const IdentHash& ident, const uint8_t * buf, int len)
{
DeleteRequestedDestination (ident);