From 074d584a04ee80123001728ad63d4fd7e9adb828 Mon Sep 17 00:00:00 2001 From: Forrest Voight Date: Tue, 6 Sep 2011 18:15:46 -0400 Subject: Added RPC call 'getmemorypool' that provides everything needed to construct a block with a custom generation transaction and submit a solution getmemorypool [data] If [data] is not specified, returns data needed to construct a block to work on: "version" : block version "previousblockhash" : hash of current highest block "transactions" : contents of non-coinbase transactions that should be included in the next block "coinbasevalue" : maximum allowable input to coinbase transaction, including the generation award and transaction fees "time" : timestamp appropriate for next block "bits" : compressed target of next block If [data] is specified, tries to solve the block and returns true if it was successful. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 472c80a33..750290ccc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1338,7 +1338,7 @@ bool CBlock::AcceptBlock() return true; } -bool static ProcessBlock(CNode* pfrom, CBlock* pblock) +bool ProcessBlock(CNode* pfrom, CBlock* pblock) { // Check for duplicate uint256 hash = pblock->GetHash(); -- cgit v1.2.3