mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-26 05:27:19 +00:00
fixed bug for h2048 (#367)
This commit is contained in:
parent
6687e6b4d6
commit
9b99057af4
@ -31,13 +31,13 @@ func ConvertH2048ToBloom(h2048 *types.H2048) [256]byte {
|
||||
|
||||
func ConvertBytesToH2048(data []byte) *types.H2048 {
|
||||
return &types.H2048{
|
||||
Lo: &types.H1024{
|
||||
Lo: ConvertBytesToH512(data),
|
||||
Hi: ConvertBytesToH512(data[64:]),
|
||||
},
|
||||
Hi: &types.H1024{
|
||||
Lo: ConvertBytesToH512(data[128:]),
|
||||
Hi: ConvertBytesToH512(data[192:]),
|
||||
Hi: ConvertBytesToH512(data),
|
||||
Lo: ConvertBytesToH512(data[64:]),
|
||||
},
|
||||
Lo: &types.H1024{
|
||||
Hi: ConvertBytesToH512(data[128:]),
|
||||
Lo: ConvertBytesToH512(data[192:]),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user