Remove bonds for peers that have fully expired. Remove notion of bond health
This commit is contained in:
parent
f8e24f4629
commit
8148c658cf
8 changed files with 57 additions and 88 deletions
|
@ -53,7 +53,10 @@ private:
|
|||
Peer() {} // disabled to prevent bugs -- should not be constructed uninitialized
|
||||
|
||||
public:
|
||||
~Peer() { Utils::burn(_key,sizeof(_key)); }
|
||||
~Peer() {
|
||||
Utils::burn(_key,sizeof(_key));
|
||||
RR->bc->destroyBond(_id.address().toInt());
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new peer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue