Bitcoin Forum

Bitcoin => Electrum => Topic started by: Aweasadbek on December 29, 2018, 10:02:25 AM



Title: help electrum server notification
Post by: Aweasadbek on December 29, 2018, 10:02:25 AM
Hello! I am trying to get confirmations of bitcoin transaction,it now gets confirmations, but when latest block changes(latest block on blockchain.info, it gets confirmations), till restart of my application(wallet reinitialization on restart), it doesn't change local block height got by wallet.get_local_height() so confirmations doesn't change too. Here is code snippet: https://pastebin.com/j6msktyZ


Title: Re: help electrum server notification
Post by: jackg on December 29, 2018, 10:09:41 AM
Do you iterate over the code or not? It might be that it just checks if it's confirmed once and then does nothing because it isn't asked to.

You could put it in a loop until confirmations > 5 or something. Print true when it is and then do a system exit() or something or just break.