mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
.
This commit is contained in:
@@ -1,7 +1,31 @@
|
||||
#include "UniqueNodeList.h"
|
||||
#include "Application.h"
|
||||
|
||||
void UniqueNodeList::load()
|
||||
|
||||
void UniqueNodeList::addNode(uint160& hanko,uint1024& publicKey)
|
||||
{
|
||||
"INSERT INTO UNL values ("
|
||||
theApp->getDB()->executeSQL(sql);
|
||||
}
|
||||
|
||||
void UniqueNodeList::removeNode(uint160& hanko)
|
||||
{
|
||||
"DELETE FROM UNL where hanko="
|
||||
theApp->getDB()->executeSQL(sql);
|
||||
|
||||
}
|
||||
|
||||
int UniqueNodeList::checkValid(newcoin::Validation& valid)
|
||||
{
|
||||
"SELECT pubkey from UNL where hanko="
|
||||
if( theApp->getDB()->executeSQL(sql) )
|
||||
{
|
||||
if(theApp->getDB()->getNextRow())
|
||||
{
|
||||
theApp->getDB()->getBytes();
|
||||
|
||||
}else return(0); // not on our list
|
||||
}
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user