diff options
| author | Pieter Wuille <[email protected]> | 2013-01-27 00:14:11 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-01-30 03:56:44 +0100 |
| commit | ef3988ca369900206b0cfc32cc1958aee0e43710 (patch) | |
| tree | 9cd1ecf802bd159238ece0954200b98a45d01bf3 /src/rpcmining.cpp | |
| parent | Merge pull request #2231 from sipa/cleanups (diff) | |
| download | discoin-ef3988ca369900206b0cfc32cc1958aee0e43710.tar.xz discoin-ef3988ca369900206b0cfc32cc1958aee0e43710.zip | |
CValidationState framework
Diffstat (limited to 'src/rpcmining.cpp')
| -rw-r--r-- | src/rpcmining.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 778e0acbd..b9ebcb400 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -365,9 +365,10 @@ Value submitblock(const Array& params, bool fHelp) throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "Block decode failed"); } - bool fAccepted = ProcessBlock(NULL, &pblock); + CValidationState state; + bool fAccepted = ProcessBlock(state, NULL, &pblock); if (!fAccepted) - return "rejected"; + return "rejected"; // TODO: report validation state return Value::null; } |