faircoin/electrumfair

Problems starting an imported privkeys wallet from python code

Closed this issue · 3 comments

XaviP commented

We are starting electrumfair wallet from python code like this:

import electrumfair
c = electrumfair.SimpleConfig()
network = electrumfair.Network(c)
network.start()
storage = electrumfair.WalletStorage(wallet_path)
wallet = electrumfair.Wallet(storage)
wallet.start_threads(network)

This is currently working ok with wallet updated from seed, but we are facing problems with an imported privkeys wallet. From gui, the wallet seems ok (all addresses recognized), but when starting the wallet from python code, only 20 addresses from a seed are recognized, no one of the addresses from the imported private keys.

Edit: from console the imported privkeys addresses doesn't appear neither with electrumfair listaddresses

the "import private keys" is not a way to go due to we need to sweep the funds, and is required we need use the same wallet with the same balance and addresses for user.

I have the wallet updated to 2.7.18 and striped the false addresses created but i was facing another problem creating transactions, i thought related to
spesmilo#2242

I updated to 2.8.3 (branch 2.8.3-fc, ready to test and use, works for me in debian stretch) but it does not solved the error.
Perhaps is related to
spesmilo#2509
fixed in
spesmilo@7ea2cb4
so i am updating to electrum master but some classes were some refactored (blockchain.py) and it is giving problems to run (changes in the serialized header function and so).

Is this issue still relevant?

Not really, can be closed