Fix transaction validation
This commit is contained in:
parent
3f71b7de1f
commit
5284a1487c
1 changed files with 1 additions and 4 deletions
|
|
@ -983,10 +983,7 @@ bool sidechain_net_handler_bitcoin::process_proposal(const proposal_object &po)
|
||||||
const auto &idx = database.get_index_type<son_wallet_index>().indices().get<by_id>();
|
const auto &idx = database.get_index_type<son_wallet_index>().indices().get<by_id>();
|
||||||
const auto swo = idx.find(object_id);
|
const auto swo = idx.find(object_id);
|
||||||
if (swo != idx.end()) {
|
if (swo != idx.end()) {
|
||||||
const auto prec_swo = idx.find(son_wallet_id_type(object_id.instance() - 1));
|
tx_str = create_primary_wallet_transaction(*swo, new_pw_address);
|
||||||
if (prec_swo != idx.end()) {
|
|
||||||
tx_str = create_primary_wallet_transaction(*prec_swo, new_pw_address);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue