Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #949 from GolosChain/948-fix-broadcast_with_callba…
Browse files Browse the repository at this point in the history
…ck-api

Restore broadcast_transaction_with_callback arguments order #948
  • Loading branch information
afalaleev authored Sep 4, 2018
2 parents 5a46c4d + 45b1d2c commit f8bb091
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/network_broadcast_api/network_broadcast_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ namespace golos {

DEFINE_API(network_broadcast_api_plugin, broadcast_transaction_synchronous) {
PLUGIN_API_VALIDATE_ARGS(
(std::string, unused) // TODO: remove in HF
(signed_transaction, trx)
(uint32_t, max_block_age, 0)
);
if (n_args >= 2) {
if (n_args >= 3) {
GOLOS_CHECK_PARAM(max_block_age, GOLOS_CHECK_VALUE(!check_max_block_age(max_block_age), "Invalid value"));
}

Expand Down

0 comments on commit f8bb091

Please sign in to comment.