Skip to content

Commit

Permalink
fix: marshal work object to get block
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalank authored and gameofpointers committed Apr 26, 2024
1 parent 3cfcd88 commit 2daf389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/quaiapi/quai_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ func (s *PublicBlockChainQuaiAPI) BaseFee(ctx context.Context, txType bool) (*bi
// returned. When fullTx is true the returned block contains full transaction details, otherwise it will only contain
// transaction hashes.
func RPCMarshalBlock(block *types.WorkObject, inclTx bool, fullTx bool, nodeLocation common.Location) (map[string]interface{}, error) {
fields := block.Header().RPCMarshalHeader()
fields := block.RPCMarshalWorkObject()
fields["size"] = hexutil.Uint64(block.Size())

if inclTx {
Expand Down

0 comments on commit 2daf389

Please sign in to comment.