Bitcoin Forum
May 04, 2024, 07:08:32 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: help electrum server notification  (Read 132 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
1714849712
Hero Member
*
Offline Offline

Posts: 1714849712

View Profile Personal Message (Offline)

Ignore
1714849712
Reply with quote  #2

1714849712
Report to moderator
1714849712
Hero Member
*
Offline Offline

Posts: 1714849712

View Profile Personal Message (Offline)

Ignore
1714849712
Reply with quote  #2

1714849712
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714849712
Hero Member
*
Offline Offline

Posts: 1714849712

View Profile Personal Message (Offline)

Ignore
1714849712
Reply with quote  #2

1714849712
Report to moderator
1714849712
Hero Member
*
Offline Offline

Posts: 1714849712

View Profile Personal Message (Offline)

Ignore
1714849712
Reply with quote  #2

1714849712
Report to moderator
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!