mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
all: fix unnecessary conversion (#1527)
Co-authored-by: wit <wit765765346@gmail>
This commit is contained in:
parent
d9ae317a38
commit
7d5a03a46e
3 changed files with 3 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ func TestGetM1M2FromCheckpointHeader(t *testing.T) {
|
|||
epoch := uint64(900)
|
||||
config := ¶ms.ChainConfig{
|
||||
XDPoS: ¶ms.XDPoSConfig{
|
||||
Epoch: uint64(epoch),
|
||||
Epoch: epoch,
|
||||
},
|
||||
}
|
||||
testMoveM2 := []uint64{0, 0, 0, 1, 1, 1, 2, 2, 2, 0, 0, 0, 1, 1, 1, 2, 2, 2}
|
||||
|
|
|
|||
|
|
@ -509,7 +509,7 @@ func (r *receiptLogs) DecodeRLP(s *rlp.Stream) error {
|
|||
}
|
||||
r.Logs = make([]*types.Log, len(stored.Logs))
|
||||
for i, log := range stored.Logs {
|
||||
r.Logs[i] = (*types.Log)(log)
|
||||
r.Logs[i] = log
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -416,7 +416,7 @@ func parseTestData(filePath string) MultiRangeProof {
|
|||
// var result map[string]interface{}
|
||||
result := BulletProof{}
|
||||
|
||||
json.Unmarshal([]byte(byteValue), &result)
|
||||
json.Unmarshal(byteValue, &result)
|
||||
|
||||
fmt.Println("result ", result.Tau)
|
||||
fmt.Println("result ", result.Th)
|
||||
|
|
|
|||
Loading…
Reference in a new issue