java.lang.Object
io.mokamint.node.NodeInfos
Providers of non-consensus node information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGson decoder.static classGson encoder.static classJson representation. -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeInfoof(Version version, UUID uuid, LocalDateTime localDateTimeUTC, int maxChainPortionLength, int maxMempoolPortionLength) Yields a node information object.
-
Method Details
-
of
public static NodeInfo of(Version version, UUID uuid, LocalDateTime localDateTimeUTC, int maxChainPortionLength, int maxMempoolPortionLength) Yields a node information object.- Parameters:
version- the version of the nodeuuid- the UUID of the nodelocalDateTimeUTC- the local date and time UTC of the nodemaxChainPortionLength- the maximal number of block hashes that can be fetched with a singlePublicNode.getChainPortion(long, int)callmaxMempoolPortionLength- the maximal number of mempool elements that can be fetched with a singlePublicNode.getMempoolPortion(int, int)call- Returns:
- the node information object
-