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

Commit 5a21859

Browse files
committed
Fix arguments for broadcast_transaction_synchronous and broadcast_transaction_with_callback.
1 parent 88088b7 commit 5a21859

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

plugins/network_broadcast_api/network_broadcast_api.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,10 @@ namespace golos {
5757

5858
DEFINE_API(network_broadcast_api_plugin, broadcast_transaction_synchronous) {
5959
PLUGIN_API_VALIDATE_ARGS(
60-
(std::string, unused) // TODO: remove in HF
6160
(signed_transaction, trx)
6261
(uint32_t, max_block_age, 0)
6362
);
64-
if (n_args >= 3) {
63+
if (n_args >= 2) {
6564
GOLOS_CHECK_PARAM(max_block_age, GOLOS_CHECK_VALUE(!check_max_block_age(max_block_age), "Invalid value"));
6665
}
6766

@@ -97,10 +96,11 @@ namespace golos {
9796
DEFINE_API(network_broadcast_api_plugin,broadcast_transaction_with_callback){
9897
// TODO: implement commit semantic for delegating connection handlers
9998
PLUGIN_API_VALIDATE_ARGS(
99+
(std::string, unused) // TODO: remove in HF
100100
(signed_transaction, trx)
101101
(uint32_t, max_block_age, 0)
102102
);
103-
if (n_args >= 2) {
103+
if (n_args >= 3) {
104104
GOLOS_CHECK_PARAM(max_block_age, GOLOS_CHECK_VALUE(!check_max_block_age(max_block_age), "Invalid value"));
105105
}
106106

0 commit comments

Comments
 (0)