Bitcoin Forum
November 08, 2024, 11:46:34 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: help electrum server notification  (Read 151 times)
Aweasadbek (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
December 29, 2018, 10:02:25 AM
 #1

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
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
December 29, 2018, 10:09:41 AM
 #2

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!