提交 4abc2b6e 编写于 作者: P Phil Mesnier

#1329, dawn-567, bring back subsequent work done on the dawn 2.x branch, and...

#1329, dawn-567, bring back subsequent work done on the dawn 2.x branch, and add support for packed messages. block summary support to follow.
上级 1196e43f
......@@ -255,11 +255,10 @@ transaction_trace chain_controller::push_transaction(const packed_transaction& t
transaction_trace chain_controller::_push_transaction(const packed_transaction& trx) {
transaction_metadata mtrx( trx, get_chain_id(), head_block_time());
check_transaction_authorization(mtrx.trx(), trx.signatures);
auto result = _push_transaction(std::move(mtrx));
// notify anyone listening to pending transactions
on_pending_transaction(trx);
on_pending_transaction(_pending_transaction_metas.back(), trx);
_pending_block->input_transactions.emplace_back(trx);
......
......@@ -110,7 +110,7 @@ namespace eosio { namespace chain {
* This signal is emitted any time a new transaction is added to the pending
* block state.
*/
signal<void(const packed_transaction&)> on_pending_transaction;
signal<void(const transaction_metadata&, const packed_transaction&)> on_pending_transaction;
......
......@@ -156,8 +156,8 @@ namespace eosio {
request_message,
sync_request_message,
block_summary_message,
signed_transaction,
signed_block>;
signed_block,
packed_transaction>;
} // namespace eosio
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册