prysm-pulse/beacon-chain/blockchain
Sammy Rosso ce9eaae22e
Add payload data logging (#10845)
* Add logging of block payload data

Added a new func logBlockPayloadData that includes logging of the
block number and the gas utilized.
Related to #10795.

* Replace Info with Debug + renamed func

Renamed the function to be clearer and replaced Info logging with Debug.
Related to #10795.

* Compute correct value for gas utilized

Related to #10795.

* Round result of gas utilized to 2 decimal places

* Add new error message

* Check if block is an Execution block

Co-authored-by: terencechain <terence@prysmaticlabs.com>

* Fix missing imports

* Undo changes

* Update beacon-chain/blockchain/receive_block.go

Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>

* Added error logging to log statements

Changed the error handling from log statements. Instead of returning the
error we log the error.

Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-15 10:03:48 +00:00
..
store Chain info: Return err if checkpoint is nil (#10729) 2022-05-20 18:41:33 +00:00
testing API's IsOptimistic - update header.StateRoot only when block is not missing (#10852) 2022-06-09 19:35:35 +00:00
blockchain_test.go Replace ioutil with io and os (#10541) 2022-04-18 20:42:07 +00:00
BUILD.bazel Merge ascii art banner (#10773) 2022-06-14 08:25:42 +00:00
chain_info_norace_test.go Move Consensus Type Wrappers Into Consensus Types Package (#10598) 2022-05-02 15:43:40 +00:00
chain_info_test.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
chain_info.go Chain info: Return err if checkpoint is nil (#10729) 2022-05-20 18:41:33 +00:00
checktags_test.go Use go:build lines and remove obsolete +build lines (#10704) 2022-06-14 11:47:27 +00:00
error_test.go More selective on marking block as bad (#10681) 2022-05-20 17:05:39 +00:00
error.go Do not fill in blocks that are not in the finalized branch (#10776) 2022-05-30 11:55:39 +00:00
execution_engine_test.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
execution_engine.go Validator client builder support (#10749) 2022-06-06 19:32:41 +00:00
head_sync_committee_info_test.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
head_sync_committee_info.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
head_test.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
head.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
init_sync_process_block_test.go Move Consensus Type Wrappers Into Consensus Types Package (#10598) 2022-05-02 15:43:40 +00:00
init_sync_process_block.go Consolidate blockchain errors (#10736) 2022-05-22 17:48:54 +00:00
init_test.go Config registry (#10683) 2022-05-20 07:16:53 +00:00
log_test.go Use Single Beacon Block Wrapper Function Across Prysm (#10608) 2022-05-04 11:55:35 +08:00
log.go Add payload data logging (#10845) 2022-06-15 10:03:48 +00:00
merge_ascii_art.go Merge ascii art banner (#10773) 2022-06-14 08:25:42 +00:00
metrics_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
metrics.go Fill missing payload ID (#10803) 2022-06-05 05:34:08 +00:00
mock_test.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
new_slot_test.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
new_slot.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
options.go Payload ID caching (#10481) 2022-04-06 16:36:52 -07:00
pow_block_test.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
pow_block.go Merge ascii art banner (#10773) 2022-06-14 08:25:42 +00:00
process_attestation_helpers.go Move BeaconBlockNil Checker Function to Consensus-Types/Wrapper Package (#10731) 2022-05-20 23:29:16 +00:00
process_attestation_test.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
process_attestation.go Implement fork choice spec tests (#10159) 2022-01-31 19:03:48 +00:00
process_block_helpers.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
process_block_test.go Graduate Prune Canonical Attestations Feature (#10623) 2022-06-15 09:05:19 +00:00
process_block.go Graduate Prune Canonical Attestations Feature (#10623) 2022-06-15 09:05:19 +00:00
receive_attestation_test.go Change forkchoice API (#10774) 2022-06-05 17:48:21 +00:00
receive_attestation.go service.head race condition fix (#10741) 2022-05-27 14:24:43 +00:00
receive_block_test.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
receive_block.go Add payload data logging (#10845) 2022-06-15 10:03:48 +00:00
service_norace_test.go Move Consensus Type Wrappers Into Consensus Types Package (#10598) 2022-05-02 15:43:40 +00:00
service_test.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
service.go Forkchoice checkpoints (#10823) 2022-06-09 22:28:30 +00:00
state_balance_cache_test.go Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
state_balance_cache.go Consolidate blockchain errors (#10736) 2022-05-22 17:48:54 +00:00
weak_subjectivity_checks_test.go Chain info: Return err if checkpoint is nil (#10729) 2022-05-20 18:41:33 +00:00
weak_subjectivity_checks.go update info message about ws checkpoint (#10871) 2022-06-14 00:55:00 +00:00