Skip to content

Instantly share code, notes, and snippets.

@ngtuna
Created December 23, 2021 08:19
Show Gist options
  • Save ngtuna/1eebc3c412bad40bb5e9a297fc6a6baf to your computer and use it in GitHub Desktop.
Save ngtuna/1eebc3c412bad40bb5e9a297fc6a6baf to your computer and use it in GitHub Desktop.
[2021-12-23T08:18:03Z DEBUG server::tx_pool] last_executed_block_number: 261
[2021-12-23T08:18:03Z INFO server::state_keeper] Got StateKeeperRequest::GetAccountState
[2021-12-23T08:18:03Z INFO server::state_keeper] Got StateKeeperRequest::GetAccountState
[2021-12-23T08:18:03Z INFO server::tx_pool::pool_state] Re-adding BlockOperation to state: [Deposit(DepositOperation { account_id: 3, deposit_id: 9, token_id: 4, amount: 3000000000000000000, tx_hash: 0x339043b3a4d87d4ec28ef8a5b50c899ce363de4d3f97809cd07c75079b8b6bf0, created_at: 2021-12-22T08:32:18 }), Deposit(DepositOperation { account_id: 2, deposit_id: 10, token_id: 4, amount: 4000000000000000000, tx_hash: 0xb9d3749838b609876b108769eff08adcbaad678799be386604f50c6128bb7ccc, created_at: 2021-12-22T08:35:39 })]
[2021-12-23T08:18:03Z INFO server::tx_pool::pool_state] Re-adding hidden txs to pool. Hidden Txs: []
[2021-12-23T08:18:03Z DEBUG server::tx_pool] max_blocks_in_batch: 5 | amm_tx_submit_limit: 5 | last_executed_block_number: 261 | last_hidden_tx_block_number: 255 => is_executable: true
[2021-12-23T08:18:03Z INFO server::tx_pool] Applying hypo l2 state ...
[2021-12-23T08:18:03Z INFO server::state_keeper] Got StateKeeperRequest::ExecuteProposedBlock
[2021-12-23T08:18:04Z INFO server::state_keeper] Applying proposed block_number 262 | block_height 34963 | current_state_hash: 0x23ab6cf6eaa44e56950576e3aff4eaea489dd0c963b37233f7e830c267933b8d
[2021-12-23T08:18:04Z DEBUG models::l2_state] deposit balance_diff = BigInt { sign: Plus, data: BigUint { data: [4130078720, 698491930] } }
[2021-12-23T08:18:04Z DEBUG server::state_keeper] Executed operation: Deposit(DepositOperation { account_id: 3, deposit_id: 9, token_id: 4, amount: 3000000000000000000, tx_hash: 0x339043b3a4d87d4ec28ef8a5b50c899ce363de4d3f97809cd07c75079b8b6bf0, created_at: 2021-12-22T08:32:18 })
[2021-12-23T08:18:04Z DEBUG models::l2_state] deposit balance_diff = BigInt { sign: Plus, data: BigUint { data: [2643460096, 931322574] } }
[2021-12-23T08:18:04Z DEBUG server::state_keeper] Executed operation: Deposit(DepositOperation { account_id: 2, deposit_id: 10, token_id: 4, amount: 4000000000000000000, tx_hash: 0xb9d3749838b609876b108769eff08adcbaad678799be386604f50c6128bb7ccc, created_at: 2021-12-22T08:35:39 })
[2021-12-23T08:18:04Z DEBUG server::state_keeper] execute_operations receipts = [Some(Deposit(DepositReceipt { tx_hash: 0x339043b3a4d87d4ec28ef8a5b50c899ce363de4d3f97809cd07c75079b8b6bf0, diff_amount: BigInt { sign: Plus, data: BigUint { data: [4130078720, 698491930] } } })), Some(Deposit(DepositReceipt { tx_hash: 0xb9d3749838b609876b108769eff08adcbaad678799be386604f50c6128bb7ccc, diff_amount: BigInt { sign: Plus, data: BigUint { data: [2643460096, 931322574] } } }))]
[2021-12-23T08:18:04Z DEBUG server::state_keeper] execute_txs receipts = []
[2021-12-23T08:18:04Z DEBUG server::state_keeper] execute_hidden_txs receipts = []
[2021-12-23T08:18:04Z DEBUG server::state_keeper] execute_block result.receipts = [Some(Deposit(DepositReceipt { tx_hash: 0x339043b3a4d87d4ec28ef8a5b50c899ce363de4d3f97809cd07c75079b8b6bf0, diff_amount: BigInt { sign: Plus, data: BigUint { data: [4130078720, 698491930] } } })), Some(Deposit(DepositReceipt { tx_hash: 0xb9d3749838b609876b108769eff08adcbaad678799be386604f50c6128bb7ccc, diff_amount: BigInt { sign: Plus, data: BigUint { data: [2643460096, 931322574] } } }))]
[2021-12-23T08:18:04Z DEBUG server::state_keeper] execute_block result = ExecuteTxsResult { new_state_hash: Fr(0x1002d27219ba2c1de2202819aee219550c54e5713e1fb57d5b1224d1e78f9756), execute_txs_result: [Ok(NonWithdraw), Ok(NonWithdraw)], applied_updates: [UpdateAccountBalance { opcode: Some(DepositOpCode), account_id: 3, token_id: 4, balance_diff: BigInt { sign: Plus, data: BigUint { data: [4130078720, 698491930] } } }, UpdateAccountBalance { opcode: Some(DepositOpCode), account_id: 2, token_id: 4, balance_diff: BigInt { sign: Plus, data: BigUint { data: [2643460096, 931322574] } } }], receipts: [Some(Deposit(DepositReceipt { tx_hash: 0x339043b3a4d87d4ec28ef8a5b50c899ce363de4d3f97809cd07c75079b8b6bf0, diff_amount: BigInt { sign: Plus, data: BigUint { data: [4130078720, 698491930] } } })), Some(Deposit(DepositReceipt { tx_hash: 0xb9d3749838b609876b108769eff08adcbaad678799be386604f50c6128bb7ccc, diff_amount: BigInt { sign: Plus, data: BigUint { data: [2643460096, 931322574] } } }))] }
[2021-12-23T08:18:04Z INFO server::state_keeper] Reverting state
[2021-12-23T08:18:04Z INFO server::state_keeper] Reverted state
[2021-12-23T08:18:04Z INFO server::state_keeper] Applied proposed block_number 262 | block_height 34963 | new_state_hash: 0x1002d27219ba2c1de2202819aee219550c54e5713e1fb57d5b1224d1e78f9756
[2021-12-23T08:18:04Z INFO server::tx_pool] Created proposed block. block_number: 262 | block_height: 34963 | block_hash: 0x6743ee5cb73be4a3ab2fe7644ef0940bfca3158462363761430377c73ad3f0d9
[2021-12-23T08:18:04Z DEBUG server::block_consensus::worker] Proposal block_hash: 0x6743ee5cb73be4a3ab2fe7644ef0940bfca3158462363761430377c73ad3f0d9 | block_number: 262 | block_height: 34963 | block: Block { header: Header { block_number: 262, height: 34963, is_executable: true, timestamp: 2021-12-23T08:18:03, operations_hash: 0x6dece21ff88c67245617586567a9c56c7fc5f96d032d6e91f76a8d0d289efe39, amm_txs_hash: 0xf5a5fd42d16a20302798ef6ed309979b43003d2320d9f0e8ea9831a92759fb4b, hidden_txs_hash: 0xf5a5fd42d16a20302798ef6ed309979b43003d2320d9f0e8ea9831a92759fb4b, previous_block_hash: 0xcff0d564ac497657530ae28e243570593364f6172f56a586c130620b31c374be, state_hash: 0x1002d27219ba2c1de2202819aee219550c54e5713e1fb57d5b1224d1e78f9756, block_hash: 0x6743ee5cb73be4a3ab2fe7644ef0940bfca3158462363761430377c73ad3f0d9, seals: [] }, hidden_txs: [], amm_txs: [], operations: [Deposit(DepositOperation { account_id: 3, deposit_id: 9, token_id: 4, amount: 3000000000000000000, tx_hash: 0x339043b3a4d87d4ec28ef8a5b50c899ce363de4d3f97809cd07c75079b8b6bf0, created_at: 2021-12-22T08:32:18 }), Deposit(DepositOperation { account_id: 2, deposit_id: 10, token_id: 4, amount: 4000000000000000000, tx_hash: 0xb9d3749838b609876b108769eff08adcbaad678799be386604f50c6128bb7ccc, created_at: 2021-12-22T08:35:39 })] }
[2021-12-23T08:18:04Z DEBUG server::block_consensus::worker] Sending task to consensus engine. Task block_number: 262 | block_height: 34963 | block_hash: 0x6743ee5cb73be4a3ab2fe7644ef0940bfca3158462363761430377c73ad3f0d9
[2021-12-23T08:18:04Z DEBUG server::block_consensus::tendermint_backend] Handling TendermintBackendEvent::ConsensusTask
[2021-12-23T08:18:04Z DEBUG server::block_consensus::engine] Handling new consensus task. Task block_number: 262 | block_height: 34963 | block_hash: 0x6743ee5cb73be4a3ab2fe7644ef0940bfca3158462363761430377c73ad3f0d9
[2021-12-23T08:18:04Z WARN server::block_consensus::engine] block_number in ConsensusTask: 262 | block_number of newest block: 262 | block_height in ConsensusTask: 34963 | block_height of newest block: 34963 => Cancel this task
[2021-12-23T08:18:04Z DEBUG server::block_consensus::tendermint_backend] Done handling TendermintBackendEvent::ConsensusTask
[2021-12-23T08:18:04Z DEBUG server::block_consensus::worker] Can't add consensus task to state. Task: ConsensusTask { block: Block { header: Header { block_number: 262, height: 34963, is_executable: true, timestamp: 2021-12-23T08:18:03, operations_hash: 0x6dece21ff88c67245617586567a9c56c7fc5f96d032d6e91f76a8d0d289efe39, amm_txs_hash: 0xf5a5fd42d16a20302798ef6ed309979b43003d2320d9f0e8ea9831a92759fb4b, hidden_txs_hash: 0xf5a5fd42d16a20302798ef6ed309979b43003d2320d9f0e8ea9831a92759fb4b, previous_block_hash: 0xcff0d564ac497657530ae28e243570593364f6172f56a586c130620b31c374be, state_hash: 0x1002d27219ba2c1de2202819aee219550c54e5713e1fb57d5b1224d1e78f9756, block_hash: 0x6743ee5cb73be4a3ab2fe7644ef0940bfca3158462363761430377c73ad3f0d9, seals: [{ pub_key: bd481b37db8fdc85209604e37c1e099680b8bb024d2a781966e74e26d52de60b, sign: 8017448a61e367db2e9b7854694c093fd100912edb6db84dbaf9a4824aba9da0e5b4ebcaa75712b89a5c442865658a2fc0ce3dd4d30a72c89e84d643a5fc5505 }] }, hidden_txs: [], amm_txs: [], operations: [Deposit(DepositOperation { account_id: 3, deposit_id: 9, token_id: 4, amount: 3000000000000000000, tx_hash: 0x339043b3a4d87d4ec28ef8a5b50c899ce363de4d3f97809cd07c75079b8b6bf0, created_at: 2021-12-22T08:32:18 }), Deposit(DepositOperation { account_id: 2, deposit_id: 10, token_id: 4, amount: 4000000000000000000, tx_hash: 0xb9d3749838b609876b108769eff08adcbaad678799be386604f50c6128bb7ccc, created_at: 2021-12-22T08:35:39 })] }, created_at: 2021-12-23T08:18:04, is_from_proposer: false }
[2021-12-23T08:18:04Z DEBUG server::block_consensus::worker] Handling new WorkerEvent ...
[2021-12-23T08:18:04Z DEBUG server::block_consensus::worker] Handling WorkerEvent::CancelBlock ...
[2021-12-23T08:18:04Z INFO server::tx_pool] Handling cancel block request for block_number 262 | block: Block { header: Header { block_number: 262, height: 34963, is_executable: true, timestamp: 2021-12-23T08:18:03, operations_hash: 0x6dece21ff88c67245617586567a9c56c7fc5f96d032d6e91f76a8d0d289efe39, amm_txs_hash: 0xf5a5fd42d16a20302798ef6ed309979b43003d2320d9f0e8ea9831a92759fb4b, hidden_txs_hash: 0xf5a5fd42d16a20302798ef6ed309979b43003d2320d9f0e8ea9831a92759fb4b, previous_block_hash: 0xcff0d564ac497657530ae28e243570593364f6172f56a586c130620b31c374be, state_hash: 0x1002d27219ba2c1de2202819aee219550c54e5713e1fb57d5b1224d1e78f9756, block_hash: 0x6743ee5cb73be4a3ab2fe7644ef0940bfca3158462363761430377c73ad3f0d9, seals: [{ pub_key: bd481b37db8fdc85209604e37c1e099680b8bb024d2a781966e74e26d52de60b, sign: 8017448a61e367db2e9b7854694c093fd100912edb6db84dbaf9a4824aba9da0e5b4ebcaa75712b89a5c442865658a2fc0ce3dd4d30a72c89e84d643a5fc5505 }] }, hidden_txs: [], amm_txs: [], operations: [Deposit(DepositOperation { account_id: 3, deposit_id: 9, token_id: 4, amount: 3000000000000000000, tx_hash: 0x339043b3a4d87d4ec28ef8a5b50c899ce363de4d3f97809cd07c75079b8b6bf0, created_at: 2021-12-22T08:32:18 }), Deposit(DepositOperation { account_id: 2, deposit_id: 10, token_id: 4, amount: 4000000000000000000, tx_hash: 0xb9d3749838b609876b108769eff08adcbaad678799be386604f50c6128bb7ccc, created_at: 2021-12-22T08:35:39 })] }
[2021-12-23T08:18:04Z DEBUG server::tx_pool] CancelBlock: push_front_ready_hidden_txs: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment