The invention provides a method for dynamically changing a
consensus node in a practical Byzantine fault tolerant
consensus mechanism. The method comprises the following steps: a
system administratorinitiates a
change request of increasing or decreasing the
consensus node to the consensus node as a
system-level transaction, and the
change request is signed by using a private key of the
system administrator; the consensus node verifies the
change request, if the
verification is successful, a special system transaction head is added to the change request, the change request is broadcast, and each consensus node puts the change request into a priority transaction
queue; a new round of consensus operation is performed, a selected proposal node proposes a proposal block including the change request and broadcasts the proposal block to all consensus nodes, all the consensus nodes verify transactions in the proposal block, firstly verify the transaction heads of the transactions, and enter system transaction operation logic rather than smart contracts when a special system transaction head is verified; and after reaching a consensus, the node executes the change request and updates a consensus node set
list, and the updated consensus node set
list is stored to a local file of the nodes.