Follow required transaction signatures order
This commit is contained in:
parent
3745d3fba2
commit
d185fe36c3
1 changed files with 30 additions and 19 deletions
|
|
@ -271,6 +271,16 @@ void sidechain_net_handler::process_sidechain_transactions() {
|
||||||
std::for_each(idx_range.first, idx_range.second, [&](const sidechain_transaction_object &sto) {
|
std::for_each(idx_range.first, idx_range.second, [&](const sidechain_transaction_object &sto) {
|
||||||
ilog("Sidechain transaction to process: ${sto}", ("sto", sto));
|
ilog("Sidechain transaction to process: ${sto}", ("sto", sto));
|
||||||
|
|
||||||
|
son_id_type invalid_signer = son_id_type(0xFFFFFFFF);
|
||||||
|
son_id_type next_signer = invalid_signer;
|
||||||
|
for (auto &signer : sto.signers) {
|
||||||
|
if (signer.second == false) {
|
||||||
|
next_signer = signer.first;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((next_signer != invalid_signer) && (next_signer == plugin.get_current_son_id())) {
|
||||||
bool complete = false;
|
bool complete = false;
|
||||||
std::string processed_sidechain_tx = process_sidechain_transaction(sto, complete);
|
std::string processed_sidechain_tx = process_sidechain_transaction(sto, complete);
|
||||||
|
|
||||||
|
|
@ -294,6 +304,7 @@ void sidechain_net_handler::process_sidechain_transactions() {
|
||||||
} catch (fc::exception e) {
|
} catch (fc::exception e) {
|
||||||
ilog("sidechain_net_handler: sending proposal for sidechain transaction sign operation failed with exception ${e}", ("e", e.what()));
|
ilog("sidechain_net_handler: sending proposal for sidechain transaction sign operation failed with exception ${e}", ("e", e.what()));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue