/** * Broadcast a whole block. * * @param signedBlock * The {@link SignedBlock} object to broadcast. * @throws SteemCommunicationException * <ul> * <li>If the server was not able to answer the request in the given * time (see * {@link eu.bittrade.libs.steemj.configuration.SteemJConfig#setResponseTimeout(int) * setResponseTimeout}).</li> * <li>If there is a connection problem.</li> * </ul> * @throws SteemResponseException * <ul> * <li>If the SteemJ is unable to transform the JSON response into a * Java object.</li> * <li>If the Server returned an error object.</li> * </ul> */ public void broadcastBlock(SignedBlock signedBlock) throws SteemCommunicationException, SteemResponseException { NetworkBroadcastApi.broadcastBlock(communicationHandler, signedBlock); }
/** * Broadcast a whole block. * * @param signedBlock * The {@link SignedBlock} object to broadcast. * @throws SteemCommunicationException * <ul> * <li>If the server was not able to answer the request in the given * time (see * {@link eu.bittrade.libs.steemj.configuration.SteemJConfig#setResponseTimeout(int) * setResponseTimeout}).</li> * <li>If there is a connection problem.</li> * </ul> * @throws SteemResponseException * <ul> * <li>If the SteemJ is unable to transform the JSON response into a * Java object.</li> * <li>If the Server returned an error object.</li> * </ul> */ public void broadcastBlock(SignedBlock signedBlock) throws SteemCommunicationException, SteemResponseException { NetworkBroadcastApi.broadcastBlock(communicationHandler, signedBlock); }