-
Notifications
You must be signed in to change notification settings - Fork 36
Conversation
cd6b981
to
1d6f249
Compare
libraries/api/block_objects.cpp
Outdated
} | ||
} | ||
|
||
annotated_signed_block::annotated_signed_block(const signed_block& block, block_operations& ops) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(..., const block_operations& ops)
|
||
annotated_signed_block(const signed_block& block); | ||
|
||
annotated_signed_block(const signed_block& block, block_operations& ops); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(..., const block_operations& ops)
plugins/operation_history/plugin.cpp
Outdated
auto sb = database.fetch_block_by_number(block_num); | ||
if (!sb.valid()) { | ||
return result; | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For what else
?
plugins/operation_history/plugin.cpp
Outdated
|
||
const auto& idx = database.get_index<operation_index>().indices().get<by_location>(); | ||
auto itr = idx.lower_bound(block_num); | ||
block_operations ops; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
result._virtual_operations = block_operations();
plugins/operation_history/plugin.cpp
Outdated
op.op_in_trx = itr->op_in_trx; | ||
op.virtual_op = itr->virtual_op; | ||
op.op = fc::raw::unpack<protocol::operation>(itr->serialized_op); | ||
ops.push_back(op); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
result._virtual_operations.push_back(op);
plugins/operation_history/plugin.cpp
Outdated
ops.push_back(op); | ||
} | ||
} | ||
result._virtual_operations = ops; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove line.
Fixing problem. 5 min. |
Fixed. Review, please. |
Rebase changes to one commit and change HEAD from golos-v0.19.0 to golos-v0.18.5 |
e7225a7
to
ee96922
Compare
e903797
to
8905450
Compare
1435b6a
to
8905450
Compare
#936
Checklists
Use testnet.
Check refactored cli_wallet's
get_block
(based on database_api's get_block):Run following cli-wallet script (note: run it after block 4 applied):
Result:
Check new method
get_block_with_virtual_ops
Result:
Check refactored
set_block_applied_callback
After all hardforks applied, run:
Result: