Bitcoin Forum
May 25, 2024, 04:26:51 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: adding "sending address" in bitcoin core fails  (Read 71 times)
citb0in (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 709


Bitcoin g33k


View Profile
December 27, 2023, 10:01:47 PM
 #1

Hello, I have created a wallet in bdb format with avoid_reuse=false in Bitcoin Core 26.0.0 for testing purposes and imported the corresponding transactions manually using importprunedfunds. This worked for all incoming payments, i.e. incoming transactions. Unfortunately I could not import the outgoing transactions with this command, the error message appears:
Quote
No addresses in wallet correspond to included transaction (code -5)

So I checked the windows "Receiving Addresses" and "Sending Addresses". Under "Receiving Addresses" I see my wallet address as expected, that's why the importfunds worked for incoming transaction. I'm pretty sure Bitcoin core expects to see my wallet address under "Sending Addresses" but this window is empty. So I create to add my same address to "Sending Addresses", too. But it fails with the error message:
Quote
Address "123foobar" already exists as a receiving address with label "foo" and so cannot be added as a sending address

I am aware about the risk of reusing a address, but as this is only for testing purposes with no valuable coins in there I know what I'm doing. I just like to import the outgoing transactions, too. What am I missing here? Do I need to start bitcoin core with any certain parameter that to override maybe a deprecated option that I'm not aware of ? Or is this a still unsolved bug ? Any help appreciated. Thanks

  _      _   _       __  _          _  _   __
 |_) |  / \|/   (_  / \ | \  / |_ |_) (_ 
 |_) |_ \_/ \_ |\   __) \_/ |_ \/  |_ | \ __)
--> citb0in Solo-Mining Group <--- low stake of only 0.001 BTC. We regularly rent about 5 PH/s hash power and direct it to SoloCK pool. Wanna know more? Read through the link and JOIN NOW
nc50lc
Legendary
*
Offline Offline

Activity: 2422
Merit: 5631


Self-proclaimed Genius


View Profile
December 28, 2023, 01:12:51 PM
 #2

I'm pretty sure Bitcoin core expects to see my wallet address under "Sending Addresses" but this window is empty. So I create to add my same address to "Sending Addresses", too.
-snip-
Or is this a still unsolved bug ? Any help appreciated. Thanks
Since the issue is currently "Open", it's not yet solved in the latest build.

If you really want to import those transactions (with that bug), since it's non-descriptor, you can import any of the outbound txn's outputs' address as watching-only.
The outgoing txn's output will be included to your "Watching-only" funds, spending the previous inbound transaction's output.

But the best workaround if the goal is to spend a pruned output is to import only the pruned transactions that aren't spent yet, just do not import the spent ones.
This doesn't solve the linked issue's OP though.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
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!