Bitcoin Forum
May 10, 2024, 09:57:50 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: listsinceblock parameter: target-confirmations  (Read 476 times)
DougPeters (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
May 04, 2014, 11:26:55 AM
 #1

listsinceblock help returns:

Quote
listsinceblock ( "blockhash" target-confirmations )

Get all transactions in blocks since block [blockhash], or all transactions if omitted

Arguments:
1. "blockhash"   (string, optional) The block hash to list transactions since
2. target-confirmations:    (numeric, optional) The confirmations required, must be 1 or more

I sent a coin to my wallet and a few seconds later I executed listsinceblock 1. My transaction was just broadcasted so it had 0 confirmations, as expected. Note the target-confirmations parameter above which must be greater than 0 no matter what.

So for my test I executed bitcoin-cli listsinceblock 0000000008eb5d53efbb39d2cb9f595e5bd567c295936de5c2282bbb8ef46cf0 1 which returned:

Quote
{
    "transactions" : [
        {
            "account" : "",
            "address" : "mzE6DJMHPghYpVg4GCurMbxSSXBfW1KCFH",
            "category" : "receive",
            "amount" : 1.00000000,
            "confirmations" : 0,
            "txid" : "917248d57293a7fd3a88aa3a26026d2e4d6a1d4eef898519b20419f2339c265c",
            "walletconflicts" : [
            ],
            "time" : 1399200157,
            "timereceived" : 1399200157
        }
    ],
    "lastblock" : "0000000004ba22e9f8cea2e843b34f7eeaa2c3b7004ddcf19bfd8af0215fc0cc"
}

Note that the above transaction has 0 confirmations, however listsinceblock is supposed to operate beyond 1 confirmations (which is weird, as I am polling listsinceblock to get new transactions that are always unconfirmed, after Gavin's tip: http://bitcoin.stackexchange.com/a/2171/11221).

What am I missing here?
1715335070
Hero Member
*
Offline Offline

Posts: 1715335070

View Profile Personal Message (Offline)

Ignore
1715335070
Reply with quote  #2

1715335070
Report to moderator
The trust scores you see are subjective; they will change depending on who you have in your trust list.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715335070
Hero Member
*
Offline Offline

Posts: 1715335070

View Profile Personal Message (Offline)

Ignore
1715335070
Reply with quote  #2

1715335070
Report to moderator
1715335070
Hero Member
*
Offline Offline

Posts: 1715335070

View Profile Personal Message (Offline)

Ignore
1715335070
Reply with quote  #2

1715335070
Report to moderator
1715335070
Hero Member
*
Offline Offline

Posts: 1715335070

View Profile Personal Message (Offline)

Ignore
1715335070
Reply with quote  #2

1715335070
Report to moderator
telepatheic
Jr. Member
*
Offline Offline

Activity: 56
Merit: 1


View Profile
May 04, 2014, 12:12:47 PM
 #2

See https://github.com/bitcoin/bitcoin/pull/199#issuecomment-1514952 it's a bit confusing!
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!