mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 03:51:20 +00:00
a2433455f9
Now keep few beacon block headers in mdbx
15 lines
225 B
Go
15 lines
225 B
Go
package base_encoding
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func Test64(t *testing.T) {
|
|
number := uint64(9992)
|
|
|
|
out := Encode64ToBytes4(number)
|
|
require.Equal(t, Decode64FromBytes4(out), number)
|
|
}
|