Skip to content

Commit

Permalink
Namecoin: rebrand test_electrum_seed_2fa_segwit and
Browse files Browse the repository at this point in the history
test_sending_offline_old_electrum_seed_online_mpk
  • Loading branch information
JeremyRand committed Jan 20, 2019
1 parent 9b9b1d0 commit 9fef7a2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions electrum_nmc/tests/test_wallet_vertical.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,12 @@ def test_electrum_seed_2fa_segwit(self, mock_write):
w = WalletIntegrityHelper.create_multisig_wallet([ks1, ks2, ks3], '2of3')
self.assertEqual(w.txin_type, 'p2wsh')

self.assertEqual(w.get_receiving_addresses()[0], 'bc1qpmufh0zjp5prfsrk2yskcy82sa26srqkd97j0457andc6m0gh5asw7kqd2')
self.assertEqual(w.get_change_addresses()[0], 'bc1qd4q50nft7kxm9yglfnpup9ed2ukj3tkxp793y0zya8dc9m39jcwq308dxz')
#self.assertEqual(w.get_receiving_addresses()[0], 'bc1qpmufh0zjp5prfsrk2yskcy82sa26srqkd97j0457andc6m0gh5asw7kqd2')
# Converted to Namecoin using `contrib/convertBechAddress.py` from Namecoin Core.
self.assertEqual(w.get_receiving_addresses()[0], 'nc1qpmufh0zjp5prfsrk2yskcy82sa26srqkd97j0457andc6m0gh5asz9cvnd')
#self.assertEqual(w.get_change_addresses()[0], 'bc1qd4q50nft7kxm9yglfnpup9ed2ukj3tkxp793y0zya8dc9m39jcwq308dxz')
# Converted to Namecoin using `contrib/convertBechAddress.py` from Namecoin Core.
self.assertEqual(w.get_change_addresses()[0], 'nc1qd4q50nft7kxm9yglfnpup9ed2ukj3tkxp793y0zya8dc9m39jcwqa5fpc9')

@needs_test_with_all_ecc_implementations
@mock.patch.object(storage.WalletStorage, '_write')
Expand Down Expand Up @@ -1173,7 +1177,9 @@ def test_sending_offline_old_electrum_seed_online_mpk(self, mock_write):
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)

# create unsigned tx
outputs = [TxOutput(bitcoin.TYPE_ADDRESS, 'tb1qyw3c0rvn6kk2c688y3dygvckn57525y8qnxt3a', 2500000)]
#outputs = [TxOutput(bitcoin.TYPE_ADDRESS, 'tb1qyw3c0rvn6kk2c688y3dygvckn57525y8qnxt3a', 2500000)]
# Converted to Namecoin using `contrib/convertBechAddress.py` from Namecoin Core.
outputs = [TxOutput(bitcoin.TYPE_ADDRESS, 'tn1qyw3c0rvn6kk2c688y3dygvckn57525y86v6ep9', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, config=self.config, fee=5000)
tx.set_rbf(True)
tx.locktime = 1446655
Expand Down

0 comments on commit 9fef7a2

Please sign in to comment.