mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
re-create LeaseSet if store type has changed
This commit is contained in:
parent
468a32a819
commit
65c2c7d80b
4 changed files with 52 additions and 48 deletions
|
@ -260,6 +260,13 @@ namespace data
|
|||
ReadFromBuffer (buf, len);
|
||||
}
|
||||
|
||||
void LeaseSet2::Update (const uint8_t * buf, size_t len, bool verifySignature)
|
||||
{
|
||||
// shouldn't be called for now. Must be called from NetDb::AddLeaseSet later
|
||||
SetBuffer (buf, len);
|
||||
// TODO:verify signature if requested
|
||||
}
|
||||
|
||||
void LeaseSet2::ReadFromBuffer (const uint8_t * buf, size_t len)
|
||||
{
|
||||
// standard LS2 header
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue