mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 17:44:29 +00:00
3f1d5a4c92
* added proper chain config * updated configs * save progress * fix lint Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
14 lines
209 B
Go
14 lines
209 B
Go
package utils
|
|
|
|
import "encoding/binary"
|
|
|
|
func Uint32ToBytes4(n uint32) (ret [4]byte) {
|
|
binary.BigEndian.PutUint32(ret[:], n)
|
|
return
|
|
}
|
|
|
|
func BytesToBytes4(b []byte) (ret [4]byte) {
|
|
copy(ret[:], b)
|
|
return
|
|
}
|