Bitcoin Forum
April 25, 2024, 12:43:07 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: gettxoutproof with pruning  (Read 180 times)
belcher (OP)
Sr. Member
****
Offline Offline

Activity: 261
Merit: 518


View Profile
March 20, 2018, 01:03:42 PM
Merited by achow101 (3), bones261 (3), ABCbits (1), darosior (1)
 #1

By my reading of Bitcoin Core's source code, the RPC call gettxoutproof won't work if pruning is enabled and if the relevant block has been deleted from disk.

I'm interested in this for Electrum Personal Server. Electrum wallet requests a merkle proof for each transaction otherwise it will display it as "Not Verified". For a non-pruned node this can be easily found with gettxoutproof and sent to Electrum, but if the node is pruned this often won't work.

What might be the best solution for my situation? The only idea I can come up with is to write code for Bitcoin Core that stores transaction merkle proofs in wallet.dat along with the rest of the transactions. Those proofs could then be accessed via the gettransaction RPC call.

1HZBd22eQLgbwxjwbCtSjhoPFWxQg8rBd9
JoinMarket - CoinJoin that people will actually use.
PGP fingerprint: 0A8B 038F 5E10 CC27 89BF CFFF EF73 4EA6 77F3 1129
1714005787
Hero Member
*
Offline Offline

Posts: 1714005787

View Profile Personal Message (Offline)

Ignore
1714005787
Reply with quote  #2

1714005787
Report to moderator
1714005787
Hero Member
*
Offline Offline

Posts: 1714005787

View Profile Personal Message (Offline)

Ignore
1714005787
Reply with quote  #2

1714005787
Report to moderator
1714005787
Hero Member
*
Offline Offline

Posts: 1714005787

View Profile Personal Message (Offline)

Ignore
1714005787
Reply with quote  #2

1714005787
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714005787
Hero Member
*
Offline Offline

Posts: 1714005787

View Profile Personal Message (Offline)

Ignore
1714005787
Reply with quote  #2

1714005787
Report to moderator
1714005787
Hero Member
*
Offline Offline

Posts: 1714005787

View Profile Personal Message (Offline)

Ignore
1714005787
Reply with quote  #2

1714005787
Report to moderator
Luke-Jr
Legendary
*
expert
Offline Offline

Activity: 2576
Merit: 1186



View Profile
February 18, 2019, 09:39:00 PM
 #2

The built-in wallet keeps a copy of the merkle proof IIRC, but I'm not sure it's accessible from RPC at this time.

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!