Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Listunspent does not return proper set of transactions #2846
I ran into issue with listunspent API call.
getaddressesbyaccount("account") returns ['n1az1tf4FozhBRVG7Ab43e2iLGPPBasXbe'] - my account has only 1 address.
I call getbalance("account", 6), I get a value of 2203.46345285 - I have 2K testnet Bitcoins in that address, that looks like a plenty of transactions to spent.
I call listunspent(1, 999999, ["n1az1tf4FozhBRVG7Ab43e2iLGPPBasXbe"]) and get  - nothing.
I did not use "move" command, just a lot of non-standard calls for creating new transactions and sending them (createraw, signraw, sendraw).
I check BTCLook and see plenty of unspent transactions - http://testnet.btclook.com/addr/n1az1tf4FozhBRVG7Ab43e2iLGPPBasXbe .
Similarly, calling listtransactions("Holding", 10, 0) returns:
This is why I think that there is some bug in listunspent that makes this API call not return proper values.
I had the same problem after I tried to delete unconfirmed transactions with pywallet. Some transactions that I didn't delete weren't showing up. I tried the -rescan, -txindex, and -reindex flags, but nothing worked.
I eventually had to delete all transactions with pywallet and THEN do a -rescan to fix the problem.
I have a same problem. I am not using accounts and my node is 0.16.