Node class
Represents a Node in the network with associated information.
A Node object encapsulates details about a node in the network, including its seed, connections, lastblock,
pendings, delta, branch, version, and utcTime. The class provides a constructor for creating Node objects,
and a copyWith
method for creating a copy of the Node with specific properties modified.
Properties:
- seed: The seed associated with the Node.
- connections: The number of connections the Node has in the network.
- lastblock: The last block processed by the Node.
- pendings: The number of pending transactions in the Node.
- branch: The branch information associated with the Node.
- version: The version of the Node software.
- utcTime: The UTC time associated with the Node.
Constructor:
- Takes the seed parameter as a required argument and initializes other properties with default values.
Constructors
Properties
- branch ↔ String
-
getter/setter pair
- connections ↔ int
-
getter/setter pair
- delta ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- headershash ↔ String
-
getter/setter pair
- lastblock ↔ int
-
getter/setter pair
- lastblockhash ↔ String
-
getter/setter pair
- pendings ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seed ↔ Seed
-
getter/setter pair
- sumaryhash ↔ String
-
getter/setter pair
- utcTime ↔ int
-
getter/setter pair
- version ↔ String
-
getter/setter pair
Methods
-
copyWith(
{Seed? seed, int? connections, int? lastblock, int? pendings, int? delta, String? branch, String? version, String? lastblockhash, String? headershash, String? sumaryhash, int? utcTime}) → Node -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited