Bitcoind
比特幣-cli balance minconf
當我
getbalance
在 bitcoin-cli 中使用命令並設置minconf
為 1 時。它會顯示帶有 1 次確認的比特幣嗎?如果這是真的,什麼是大量的確認可以使交易安全又快速?
要回答您的問題,是的,設置
minconf
為1
將顯示您的錢包餘額,該餘額是通過結合您錢包中具有最少1
網路確認的交易而得出的。您的第二個問題實際上是平衡交易安全性和您希望花費資金的速度之間的問題,因為等待,比如說,2 個網路確認會更快(約 20 分鐘),但不會被確認足夠長的時間區塊鏈上的交易是“安全的”。
這本質上是“50% 攻擊”的一種形式:
An attacker that controls more than 50% of the network's computing power can, for the time that he is in control, exclude and modify the ordering of transactions. This allows him to: Reverse transactions that he sends while he's in control. This has the potential to double-spend transactions that previously had already been seen in the block chain. Prevent some or all transactions from gaining any confirmations Prevent some or all other miners from mining any valid blocks The attacker can't: Reverse other people's transactions Prevent transactions from being sent at all (they'll show as 0/unconfirmed) Change the number of coins generated per block Create coins out of thin air Send coins that never belonged to him With less than 50%, the same kind of attacks are possible, but with less than 100% rate of success. For example, someone with only 40% of the network computing power can overcome a 6-deep confirmed transaction with a 50% success rate. It's much more difficult to change historical blocks, and it becomes exponentially more difficult the further back you go. As above, changing historical blocks only allows you to exclude and change the ordering of transactions. It's impossible to change blocks created before the last checkpoint. Since this attack doesn't permit all that much power over the network, it is expected that no one will attempt it. A profit-seeking person will always gain more by just following the rules, and even someone trying to destroy the system will probably find other attacks more attractive. However, if this attack is successfully executed, it will be difficult or impossible to "untangle" the mess created -- any changes the attacker makes might become permanent.
以上摘自<https://en.bitcoin.it/wiki/Weaknesses>
希望這可以幫助