Skip to content

Commit dd07787

Browse files
authored
format rewards file properly (#2335)
1 parent 56bb894 commit dd07787

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

consensus/XDPoS/engines/engine_v2/engine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ func (x *XDPoS_v2) saveRewardToFile(blockHash common.Hash, blockNumber uint64) {
11011101
return
11021102
}
11031103

1104-
data, err := json.Marshal(rewards)
1104+
data, err := json.MarshalIndent(rewards, "", " ")
11051105
if err != nil {
11061106
log.Error("[saveRewardToFile] Error Marshalling rewards", "err", err, "rewards", rewards)
11071107
return

0 commit comments

Comments
 (0)