The invention relates to a computer-implemented method for exchanging information, through a DAG/Hashgraph consensus algorithm via a gossip protocol, the method includes making a first given node select a second given node randomly and send reference information; determining based on the reference information which node events are in front of that of the others; if the reference information implies that the events of the first given node is in front of that of the second given node, then sending a cancellation information to the first given node, preventing, in consequence, the first given node from sending DAG-event information to the second given node; if the reference information implies that the events of the second given node is in front of that of the first given node, then making the first given node send DAG-event information to the second given node; and soon through the network.
展开▼