Title: Empty output from listunspent with a trusted balance? Post by: Jodmapht on May 30, 2024, 02:11:38 AM Hi,
So I have this descriptor core wallet I created with default options, then I obtained an address with getnewaddress. I transferred coins to the address and waited over 6 confirmations. I see a trusted balance in the wallet, I see the address as belonging to the wallet with getaddressinfo, but listunspent returns an empty list. What is going on? Thanks! Code: ./bin/bitcoin-cli -datadir=./var_testnet -rpccookiefile=./testnet3/.cookie -conf=../etc/bitcoin_testnet.conf -rpcport=18332 -rpcwallet=send getbalances Code: ./bin/bitcoin-cli -datadir=./var_testnet -rpccookiefile=./testnet3/.cookie -conf=../etc/bitcoin_testnet.conf -rpcport=18332 -rpcwallet=send getaddressinfo tb1****************************************** { Code: ./bin/bitcoin-cli -datadir=./var_testnet -rpccookiefile=./testnet3/.cookie -conf=../etc/bitcoin_testnet.conf -rpcport=18332 -rpcwallet=send listunspent 0 Title: Re: Empty output from listunspent with a trusted balance? Post by: nc50lc on May 30, 2024, 12:41:53 PM I can't reproduce this in RegTest, Bitcoin Core v27.0
Steps done are: Create a descriptor wallet with default args -> receive BTC -> generate coins (using another wallet) it until it has 6 confirmations. getbalances shows it under "trusted" balance. listunspent command shows the UTXO. It's working as intended. The only way it happens at my end is when I purposely lock that specific unspent transaction output with lockunspent command. Can you try listlockunspent? Title: Re: Empty output from listunspent with a trusted balance? Post by: Jodmapht on May 30, 2024, 10:23:35 PM I can't reproduce this in RegTest, Bitcoin Core v27.0 Steps done are: Create a descriptor wallet with default args -> receive BTC -> generate coins (using another wallet) it until it has 6 confirmations. getbalances shows it under "trusted" balance. listunspent command shows the UTXO. It's working as intended. The only way it happens at my end is when I purposely lock that specific unspent transaction output with lockunspent command. Can you try listlockunspent? Thanks! It does shows up under listlockunspent. I did not use the command lockunspent directly myself though, but a tool I was using might have I guess... Will do more testing. Would be useful if the lock information was shown by the getbalances and getaddressinfo commands maybe. |