Skip to content

Commit

Permalink
Blockchain converter code adjusted to hive::protocol::transaction::id…
Browse files Browse the repository at this point in the history
… change
  • Loading branch information
vogel76 committed Nov 9, 2023
1 parent a787b10 commit 8233eeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion programs/blockchain_converter/converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,8 @@ namespace hive { namespace converter {
calculate_transaction_expiration( head_block_time.sec_since_epoch(), _signed_block.timestamp.sec_since_epoch(), trx.expiration.sec_since_epoch(), block_offset, trx_time_offset )
};
}
while(!tapos_scope_tx_ids.insert( trx.id() ).second);
/// use same id computation scheme as the one used inside convert_signed_transaction.
while(!tapos_scope_tx_ids.insert( trx.id(hp::pack_type::legacy) ).second);
};

std::set<size_t> already_signed_transaction_pos;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ namespace detail {
{
converter.touch(_full_block->get_block_id());

ilog("Comparing signatures in trx ${trx_id} in block ${block_num}:", ("trx_id", tx.id())("block_num", _full_block->get_block_num()));
ilog("Comparing signatures in trx ${trx_id} in block ${block_num}:", ("trx_id", tx.id(hp::pack_type::legacy))("block_num", _full_block->get_block_num()));

const auto& sig = *tx.signatures.begin();
ilog("Previous signature: ${sig}", ("sig", sig));
Expand Down

0 comments on commit 8233eeb

Please sign in to comment.