From e54c5603f675e5d17a785ff688e9d7daea3116a3 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Fri, 15 Jun 2012 20:12:39 -0700 Subject: [PATCH] Add Score for SeedNodes table. --- src/DBInit.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/DBInit.cpp b/src/DBInit.cpp index fc4a1d6d4a..7406ce2ce4 100644 --- a/src/DBInit.cpp +++ b/src/DBInit.cpp @@ -117,6 +117,11 @@ const char *WalletDBInit[] = { // Table of PublicKeys user has asked to trust. // Fetches are made to the CAS. This gets the newcoin.txt so even validators without a web server can publish a newcoin.txt. + // Source: + // 'M' = Manually added. : 1500 + // 'V' = validators.txt : 1000 + // 'W' = Web browsing. : 200 + // 'R' = Referral : 0 // Next: // Time of next fetch attempt. // Scan: @@ -129,6 +134,7 @@ const char *WalletDBInit[] = { // User supplied comment. "CREATE TABLE SeedNodes ( \ PublicKey CHARACTER(53) PRIMARY KEY NOT NULL, \ + Source CHARACTER(1) NOT NULL, \ Next DATETIME, \ Scan DATETIME, \ Fetch DATETIME, \ @@ -139,7 +145,7 @@ const char *WalletDBInit[] = { // Allow us to easily find the next SeedNode to fetch. "CREATE INDEX SeedNodeNext ON SeedNodes (Next);", - // Nodes we trust not grossly consipire. Derived from SeedDomains, SeedNodes, and ValidatorReferrals. + // Nodes we trust to not grossly collude against us. Derived from SeedDomains, SeedNodes, and ValidatorReferrals. // // Score: // Computed trust score. Higher is better.