mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
internal/jsre: format blob* in block
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
eb52bca5c4
commit
f249f22bb7
1 changed files with 7 additions and 1 deletions
|
|
@ -3840,11 +3840,17 @@ var outputBlockFormatter = function(block) {
|
|||
if (block.baseFeePerGas !== undefined) {
|
||||
block.baseFeePerGas = utils.toBigNumber(block.baseFeePerGas);
|
||||
}
|
||||
if (block.blobGasUsed !== undefined) {
|
||||
block.blobGasUsed = utils.toBigNumber(block.blobGasUsed);
|
||||
}
|
||||
if (block.excessBlobGas !== undefined) {
|
||||
block.excessBlobGas = utils.toBigNumber(block.excessBlobGas);
|
||||
}
|
||||
block.gasLimit = utils.toDecimal(block.gasLimit);
|
||||
block.gasUsed = utils.toDecimal(block.gasUsed);
|
||||
block.size = utils.toDecimal(block.size);
|
||||
block.timestamp = utils.toDecimal(block.timestamp);
|
||||
if(block.number !== null)
|
||||
if (block.number !== null)
|
||||
block.number = utils.toDecimal(block.number);
|
||||
|
||||
block.difficulty = utils.toBigNumber(block.difficulty);
|
||||
|
|
|
|||
Loading…
Reference in a new issue