Skip to content

Commit

Permalink
Fix functional/feature_assumeutxo.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
janus committed Aug 4, 2024
1 parent 138cd95 commit b841bf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/signmessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ bool MessageSign(

uint256 MessageHash(const std::string& message)
{
CHashWriterKeccak hasher(SER_GETHASH, PROTOCOL_VERSION);;
CHashWriterKeccak hasher(SER_GETHASH, PROTOCOL_VERSION);
hasher << MESSAGE_MAGIC << message;

return hasher.GetHash();
Expand Down
4 changes: 2 additions & 2 deletions test/functional/feature_assumeutxo.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def expected_error(log_msg="", rpc_details=""):

def test_headers_not_synced(self, valid_snapshot_path):
for node in self.nodes[1:]:
msg = "Unable to load UTXO snapshot: The base block header (3bb7ce5eba0be48939b7a521ac1ba9316afee2c7bada3a0cca24188e6d7d96c0) must appear in the headers chain. Make sure all headers are syncing, and call loadtxoutset again."
msg = "Unable to load UTXO snapshot: The base block header (1e6b433578be026c430295078d3faca1d757c0aafec3252e385c300b35f3824b) must appear in the headers chain. Make sure all headers are syncing, and call loadtxoutset again."
assert_raises_rpc_error(-32603, msg, node.loadtxoutset, valid_snapshot_path)

def test_invalid_chainstate_scenarios(self):
Expand Down Expand Up @@ -213,7 +213,7 @@ def test_snapshot_block_invalidated(self, dump_output_path):
block_hash = node.getblockhash(height)
node.invalidateblock(block_hash)
assert_equal(node.getblockcount(), height - 1)
msg = "Unable to load UTXO snapshot: The base block header (3bb7ce5eba0be48939b7a521ac1ba9316afee2c7bada3a0cca24188e6d7d96c0) is part of an invalid chain."
msg = "Unable to load UTXO snapshot: The base block header (1e6b433578be026c430295078d3faca1d757c0aafec3252e385c300b35f3824b) is part of an invalid chain."
assert_raises_rpc_error(-32603, msg, node.loadtxoutset, dump_output_path)
node.reconsiderblock(block_hash)

Expand Down

0 comments on commit b841bf4

Please sign in to comment.