@Override public ServerInfo getinfo() { // Dummy up a response for now. // Since ServerInfo is immutable, we have to build it entirely with the constructor. Coin balance = Coin.valueOf(0); boolean testNet = !netParams.getId().equals(NetworkParameters.ID_MAINNET); int keyPoolOldest = 0; int keyPoolSize = 0; return new ServerInfo( version, protocolVersion, walletVersion, balance, getblockcount(), timeOffset, getconnectioncount(), "proxy", difficulty, testNet, keyPoolOldest, keyPoolSize, Transaction.REFERENCE_DEFAULT_MIN_TX_FEE, Transaction.REFERENCE_DEFAULT_MIN_TX_FEE, // relayfee "no errors" // errors ); }
@Override public ServerInfo getinfo() { // Dummy up a response for now. // Since ServerInfo is immutable, we have to build it entirely with the constructor. Coin balance = Coin.valueOf(0); boolean testNet = !netParams.getId().equals(NetworkParameters.ID_MAINNET); int keyPoolOldest = 0; int keyPoolSize = 0; return new ServerInfo( version, protocolVersion, walletVersion, balance, getblockcount(), timeOffset, getconnectioncount(), "proxy", difficulty, testNet, keyPoolOldest, keyPoolSize, Transaction.REFERENCE_DEFAULT_MIN_TX_FEE, Transaction.REFERENCE_DEFAULT_MIN_TX_FEE, // relayfee "no errors" // errors ); }