Discover Packages
chainmaker.org/chainmaker/net-liquid
core
peer
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Nov 5, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ID is the union identity of peer.
func (i ID ) WeightCompare(other ID ) bool
WeightCompare return whether weight of our ID is higher than other's.
This function usually used to decide which peer should be saved when a conflict found with both peers.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.