diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 4c14e5c64..83cf5ba3c 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -258,6 +258,12 @@ namespace cryptonote return false; } } + if(b.tx_hashes.size() != bd.second.size()) + { + MERROR("block " << get_block_hash(b) << ": tx_hashes.size() " << b.tx_hashes.size() << ", bd.second.size() " << bd.second.size()); + res.status = "Failed"; + return false; + } size_t txidx = 0; ntxes += bd.second.size(); for (std::list<cryptonote::blobdata>::iterator i = bd.second.begin(); i != bd.second.end(); ++i) |