Bitcoin Forum
July 06, 2024, 10:41:32 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can listtransactions show sendmany txns?  (Read 646 times)
pizzaman1337 (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
April 03, 2014, 11:28:49 PM
 #1

I'm using a very recent bitcoind build from the git repo (fecda6853d9bbc3b6df13e48cb0283e7c8ab7d52 from Apr 3). I sent a sendmany transaction, from addresses that are in my wallet to other already-used (change addresses) in the same wallet. When I run listtransactions with no parameters, the transaction does not appear at all. (I have not sent or received any other transactions since sending this one).

I'm assuming that listtransactions should show all transactions, to myself or not, as well as sendmany or other less-common transactions. I can view my txid on blockchain.info, and gettransaction indeed shows details. There are >100 confirms.

Is this a bug in recent commits in the git repo, or does listtransactions not show sendmany transactions? I can provide the txid if it helps.

Thanks!
pizzaman1337 (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
April 05, 2014, 11:00:26 AM
 #2

Because the transaction was to addresses within my own wallet, bitcoind did not show them under listtransactions because it classified all of them as change transactions.

The specific code for this is in CWalletTx::GetAmounts in wallet.cpp, inside the for loop it calls pwallet->IsChange(txout). GetAmounts is called from ListTransactions in rpcwallet.cpp (just in case this info is helpful for anyone).
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!