mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 14:35:52 +00:00
Need a way to remove a trusted node!
This commit is contained in:
@@ -1465,6 +1465,7 @@ void UniqueNodeList::nodeRemovePublic(const RippleAddress& naNodePublic)
|
||||
boost::recursive_mutex::scoped_lock sl(theApp->getWalletDB()->getDBLock());
|
||||
|
||||
db->executeSQL(str(boost::format("DELETE FROM SeedNodes WHERE PublicKey=%s") % sqlEscape(naNodePublic.humanNodePublic())));
|
||||
db->executeSQL(str(boost::format("DELETE FROM TrustedNodes WHERE PublicKey=%s") % sqlEscape(naNodePublic.humanNodePublic())));
|
||||
}
|
||||
|
||||
// YYY Only dirty on successful delete.
|
||||
|
||||
Reference in New Issue
Block a user