Package com.bradyrussell.uiscoin.node
Class UISCoinNode
java.lang.Object
com.bradyrussell.uiscoin.node.UISCoinNode
public class UISCoinNode
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description java.util.concurrent.atomic.AtomicInteger
HighestSeenBlockHeight
io.netty.channel.group.ChannelGroup
nodeClients
long
nodeId
io.netty.channel.group.ChannelGroup
peerClients
java.util.ArrayList<PeerAddress>
peersEverSeen
-
Constructor Summary
Constructors Constructor Description UISCoinNode(BlockchainStorage blockchain)
-
Method Summary
Modifier and Type Method Description void
broadcastBlockHeaderToPeers(BlockHeaderResponse blockHeaderResponse)
void
broadcastBlockToPeers(Block block)
void
broadcastPeerToPeers(PeerAddress address)
void
broadcastTransactionToPeers(Transaction transaction)
void
connectToPeer(PeerAddress address)
BlockchainStorage
getBlockchain()
java.util.List<PeerAddress>
getPeers()
void
requestBlockChainFromPeers(int BlockHeight)
void
requestBlockFromPeers(BlockRequest request)
void
requestBlockHeightFromPeers()
Deprecated.void
requestMemPoolFromPeers()
void
retryPeers()
void
start()
void
start(int Port)
void
stop()
-
Field Details
-
peersEverSeen
-
nodeClients
public final io.netty.channel.group.ChannelGroup nodeClients -
peerClients
public final io.netty.channel.group.ChannelGroup peerClients -
nodeId
public final long nodeId -
HighestSeenBlockHeight
public final java.util.concurrent.atomic.AtomicInteger HighestSeenBlockHeight
-
-
Constructor Details
-
Method Details
-
getBlockchain
-
connectToPeer
-
requestBlockHeightFromPeers
@Deprecated public void requestBlockHeightFromPeers()Deprecated. -
requestBlockChainFromPeers
public void requestBlockChainFromPeers(int BlockHeight) -
requestBlockFromPeers
-
broadcastBlockToPeers
-
requestMemPoolFromPeers
public void requestMemPoolFromPeers() -
broadcastBlockHeaderToPeers
-
broadcastTransactionToPeers
-
broadcastPeerToPeers
-
start
public void start() -
start
public void start(int Port) -
stop
public void stop() -
retryPeers
public void retryPeers() -
getPeers
-