特别提示:
比特币(BSV)知识库-Bitcoin wiki-目前为全英文内容,暂无中文译文,并且仍在持续编写和补充中。欢迎中国的开发者在文章底部评论,进行阐述和探讨。
The rules of the Bitcoin protocol are the rules that precisely define the Bitcoin system.
There are different classes of rule in the Bitcoin system including:
The immutable rules are codified into Bitcoin node clients and must be strictly adhered to in order to implement the Bitcoin specification in software [1]. They are a set of rules that define the format and constraints that transactions and blocks must follow. Changes to these rules require a hard fork to the network which can result in a ledger duplication in cases where miners try to enforce changes that change the nature of Bitcoin. As Bitcoin is defined by these rules a forked chain that alters them might share the history of the ledger but cannot be considered to be Bitcoin, rather it is a new block chain.
These include:
Forced changes to these protocol rules in the past have resulted in hostile duplications of the Bitcoin database, creating BTC which removed the requirement for Bitcoin to be a chain of digital signatures, and BCH which modified the timestamping aspect of the system as well as modifying the scripting language to add op codes not part of the original design.
The Bitcoin SV philosophy is that where aspects of these rules have been changed in the past they should be returned to be as close to the original rules as possible and then “set in stone”, with only changes needed to protect the security of the network such as the migration to a new hash function should SHA256 be broken be allowed, with this rule being enforced through Nakamoto Consensus.
Mutable rules are consensus rules that mining clients implement but which are not hard coded into the BitcoinSV node client. Miners can change these at any time provided there is enough agreement among miners to do so under Nakamoto Consensus. Miners who do not maintain these settings in-line with the rest of the network risk having their blocks invalidated. Examples of these include:
It is important to note that these rules can be violated in special cases by miners through a negotiation process that ends with a transaction or block that violates these rules being accepted and built upon. This can only be achieved through Nakamoto consensus. No examples of this happening have yet been encountered.
When modifying these rules, miners tend to act as a collective, changing a particular rule all at once (e.g. maximum transaction memory limits and maximum block size). Since the Genesis upgrade, these changes no longer require hard forks or scheduled network upgrades, and the settings that govern these changes available to miners through node client configuration tools. All that is required is a loose agreement between miners to change the settings across the network at a particular date and time.
This means that miners must be aware of the actions being taken by the rest of the network lest they find themselves rejecting transactions or blocks that a majority of the network is accepting and become stuck on a non-productive chain-tip while the remainder of the network move forward.
These rules are “local” by definition. They apply to the instance of software that is running, they do not apply to the validation of blocks, or the transactions within a block. A block accepted from another miner may contain transactions that do not conform to local rules. Local rules include:
Standard policies are local rules that are used by a significant proportion of network nodes. They are defined as a "Standard" to facilitate common application across independent software implementations but it is important to note that it is not required that software implement or adhere to these policies.
Bitcoin users who transact within the guidelines of standard policy will face the least issues with their transactions on the network. Some miners can enact local rules outside of the standard policies however this can cause issues for the miner, who may be attempting to mine blocks that carry large numbers of transactions which other miners have rejected. This can lead to orphan blocks due to slow propagation.
The communication rules govern how transaction and block data is propagated across the Bitcoin network. Commonly referred to as the Bitcoin Peer-To-Peer (P2P) Protocol, this current version is well defined method and used by the majority of Bitcoin nodes in the network to communicate. The P2P Protocol can be changed and there are plans among miners to modify the implementation in future. It is conceivable that at a certain point, several different inter-node communications protocols may be in-use to propagate block and transaction information between miners, and optimising this aspect of the network is strongly incentivised by the economics of Bitcoin mining. A large amount of the innovation that scales Bitcoin SV has been, and will in future be done by improving the P2P protocol.
[1] - https://github.com/bitcoin-sv-specs/protocol/blob/master/updates/genesis-spec.md
声明:
比特币(BSV)知识库项目由比特币协会(Bitcoin Association)发起并支持,更多信息请参见知识库官网:https://wiki.bitcoinsv.io/