The application discloses a kind of alliance chain slice construction and
consensus method based on
dynamic clustering, comprising, the real-time computing power of alliance chain node, transaction frequency and
transmission rate are collected;By verifiable random function, node is divided into Full_node of storing
complete data and Slice_node of only storing slice data;DQN
algorithm is used to determine the number of slices K, and the final
consensus group is formed by selecting
consensus representative nodes from Full_node based on dynamic performance threshold;The correlation matrix between the remaining nodes is constructed, and the nodes are evenly distributed to K slices by means of improved clustering
algorithm;In each slice and consensus group, the Leader node is elected;When a new transaction arrives, execute the corresponding consensus process according to whether the transaction parties belong to the same slice, and write into the
blockchain after
verification, collect consensus performance data by Leader, and determine whether to trigger slice reconstruction according to performance data: if triggered, re-slice, otherwise continue to process transactions until completion;The application can improve the
throughput of the overall
system, relieve the data storage pressure, and improve the
system response efficiency.