This commit is contained in:
jed
2011-10-26 16:10:43 -07:00
parent fed4350ccc
commit 880c763dea
31 changed files with 1012 additions and 35 deletions

View File

@@ -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);
}