Package org.ethereum.listener

Examples of org.ethereum.listener.EthereumListener.trace()


    @Override
    public PeerInfo findOnlinePeer(Set<PeerInfo> excludePeers)  {
        logger.info("Looking for online peers...");

        final EthereumListener listener = worldManager.getListener();
        listener.trace("Looking for online peer");

        worldManager.startPeerDiscovery();

        final Set<PeerInfo> peers = worldManager.getPeerDiscovery().getPeers();
        synchronized (peers) {
View Full Code Here


        synchronized (peers) {
            for (PeerInfo peer : peers) { // it blocks until a peer is available.
        if (peer.isOnline() && !excludePeers.contains(peer)) {
                    logger.info("Found peer: {}", peer.toString());
                    if (listener != null)
                        listener.trace(String.format("Found online peer: [ %s ]", peer.toString()));
                    return peer;
                }
            }
        }
        return null;
View Full Code Here

       
        // Remove all wallet transactions as they already approved by the net
        worldManager.getWallet().removeTransactions(block.getTransactionsList());

        EthereumListener listener = worldManager.getListener();
        listener.trace(String.format("Block chain size: [ %d ]", this.getSize()));

        EthereumListener ethereumListener =  worldManager.getListener();
        ethereumListener.onBlock(block);

        if (blockQueue.size() == 0 &&
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.