From 6697207ac184b4ad2a95f7fccce2aefa04f5e718 Mon Sep 17 00:00:00 2001 From: Anthony Fieroni Date: Fri, 13 Sep 2019 18:01:29 +0300 Subject: [PATCH] Partial fix, still need investigation in wallet and block generator tests Signed-off-by: Anthony Fieroni --- test/functional/interface_bitcoin_cli.py | 6 +++--- test/functional/rpc_createmultisig.py | 2 +- test/functional/rpc_signmessage.py | 2 +- test/functional/test_framework/messages.py | 9 +++++++-- test/functional/test_framework/mininode.py | 6 +++--- test/functional/test_framework/test_framework.py | 10 +++++----- test/functional/test_framework/test_node.py | 4 ++-- test/functional/wallet_backup.py | 0 test/functional/wallet_hd.py | 0 9 files changed, 22 insertions(+), 17 deletions(-) mode change 100755 => 100644 test/functional/test_framework/test_node.py mode change 100755 => 100644 test/functional/wallet_backup.py mode change 100755 => 100644 test/functional/wallet_hd.py diff --git a/test/functional/interface_bitcoin_cli.py b/test/functional/interface_bitcoin_cli.py index f311858be..bd09ab08e 100755 --- a/test/functional/interface_bitcoin_cli.py +++ b/test/functional/interface_bitcoin_cli.py @@ -19,14 +19,14 @@ class TestBitcoinCli(BitcoinTestFramework): """Main test logic""" cli_response = self.nodes[0].cli("-version").send_cli() - assert("Bitcoin Core RPC client version" in cli_response) + assert("LBRYcrd Core RPC client version" in cli_response) - self.log.info("Compare responses from gewalletinfo RPC and `bitcoin-cli getwalletinfo`") + self.log.info("Compare responses from gewalletinfo RPC and `lbrycrd-cli getwalletinfo`") cli_response = self.nodes[0].cli.getwalletinfo() rpc_response = self.nodes[0].getwalletinfo() assert_equal(cli_response, rpc_response) - self.log.info("Compare responses from getblockchaininfo RPC and `bitcoin-cli getblockchaininfo`") + self.log.info("Compare responses from getblockchaininfo RPC and `lbrycrd-cli getblockchaininfo`") cli_response = self.nodes[0].cli.getblockchaininfo() rpc_response = self.nodes[0].getblockchaininfo() assert_equal(cli_response, rpc_response) diff --git a/test/functional/rpc_createmultisig.py b/test/functional/rpc_createmultisig.py index 3cc35a7b9..c34ecd04d 100755 --- a/test/functional/rpc_createmultisig.py +++ b/test/functional/rpc_createmultisig.py @@ -61,7 +61,7 @@ class RpcCreateMultiSigTest(BitcoinTestFramework): madd = msig["address"] mredeem = msig["redeemScript"] if self.output_type == 'bech32': - assert madd[0:4] == "bcrt" # actually a bech32 address + assert madd[0:4] == "rlbc" # actually a bech32 address # compare against addmultisigaddress msigw = node1.addmultisigaddress(self.nsigs, self.pub, None, self.output_type) diff --git a/test/functional/rpc_signmessage.py b/test/functional/rpc_signmessage.py index ad0e29b45..a04030aac 100755 --- a/test/functional/rpc_signmessage.py +++ b/test/functional/rpc_signmessage.py @@ -22,7 +22,7 @@ class SignMessagesTest(BitcoinTestFramework): self.log.info('test signing with priv_key') priv_key = 'cUeKHd5orzT3mz8P9pxyREHfsWtVfgsfDjiZZBcjUBAaGk1BTj7N' address = 'mpLQjfK79b7CCV4VMJWEWAj5Mpx8Up5zxB' - expected_signature = 'INbVnW4e6PeRmsv2Qgu8NuopvrVjkcxob+sX8OcZG0SALhWybUjzMLPdAsXI46YZGb0KQTRii+wWIQzRpG/U+S0=' + expected_signature = 'H4fEJyZBIV1i3E/oVyaf11SyA2Qufqe7WcyYQpaTW6xWZ7K0CWZX3Qx63cDxuM5kYXjg0vzzbkPWgAj5dONEDTc=' signature = self.nodes[0].signmessagewithprivkey(priv_key, message) assert_equal(expected_signature, signature) assert(self.nodes[0].verifymessage(address, signature, message)) diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py index d7faa3a5c..eaaf63418 100755 --- a/test/functional/test_framework/messages.py +++ b/test/functional/test_framework/messages.py @@ -504,6 +504,7 @@ class CBlockHeader(): self.nVersion = header.nVersion self.hashPrevBlock = header.hashPrevBlock self.hashMerkleRoot = header.hashMerkleRoot + self.hashClaimTrie = header.hashClaimTrie self.nTime = header.nTime self.nBits = header.nBits self.nNonce = header.nNonce @@ -515,6 +516,7 @@ class CBlockHeader(): self.nVersion = 1 self.hashPrevBlock = 0 self.hashMerkleRoot = 0 + self.hashClaimTrie = 1 self.nTime = 0 self.nBits = 0 self.nNonce = 0 @@ -525,6 +527,7 @@ class CBlockHeader(): self.nVersion = struct.unpack("