mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
CValidationState framework
This commit is contained in:
parent
2835080e16
commit
ef3988ca36
8 changed files with 226 additions and 213 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue