Blockchain

在 bitcoind 的 rpc 呼叫列表中出現更多次的相同塊雜湊,因為塊交易返回了 json

  • May 9, 2022

讓我們假設 listsinceblocks 返回一個像這樣的 json:

{
"transactions": [
   {
       "involvesWatchonly": true,
       "account": "",
       "address": "mzzg8fvHXydKs8j9D2a8t7KpSXpGgAnk4n",
       "category": "receive",
       "amount": 7.44,
       "label": "",
       "confirmations": 1,
       "blockhash": "f40bdab26258ff30055f90214a24fc6dcea57462535077f3c5789406e0e30072",
       "blockindex": 16,
       "blocktime": 1627657948873,
       "txid": "084752097be80c9291d554601670dc2fc265ac36ef1023519ceb8ff0b4e4995f",
       "vout": 17,
       "walletconflicts": [],
       "time": 1627657911993,
       "timereceived": 1627657911993,
       "bip125-replaceable": "no"
   },
   {
       "involvesWatchonly": true,
       "account": "",
       "address": "mzzg8fvHXydKs8j9D2a8t7KpSXpGgAnk4n",
       "category": "receive",
       "amount": 7.13,
       "label": "",
       "confirmations": 1,
       "blockhash": "f40bdab26258ff30055f90214a24fc6dcea57462535077f3c5789406e0e30072",
       "blockindex": 44,
       "blocktime": 1627657948873,
       "txid": "993c802d705255ebfc08f4642f6f676b64a4864700d7a00d15d89ca61c5333a9",
       "vout": 58,
       "walletconflicts": [],
       "time": 1627657929474,
       "timereceived": 1627657929474,
       "bip125-replaceable": "no"
   }]}

有兩個具有相同塊雜湊和相同地址的交易。這意味著什麼?這兩個單獨的存款是 7.44 和 7.13 btc,還是被認為是一個 7.44+7.13 btc 的存款?

由於 txid 不同,它代表同一塊中的兩個不同事務。

引用自:https://bitcoin.stackexchange.com/questions/113648