mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 21:17:16 +00:00
17 lines
398 B
Go
17 lines
398 B
Go
|
package core
|
||
|
|
||
|
import (
|
||
|
"github.com/ledgerwatch/erigon-lib/kv/memdb"
|
||
|
"github.com/ledgerwatch/erigon/params"
|
||
|
"github.com/stretchr/testify/require"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestDefaultBSCGenesisBlock(t *testing.T) {
|
||
|
genesis := DefaultBSCGenesisBlock()
|
||
|
db := memdb.New()
|
||
|
_, block, err := CommitGenesisBlock(db, genesis)
|
||
|
require.NoError(t, err)
|
||
|
require.Equal(t, block.Hash(), params.BSCGenesisHash)
|
||
|
}
|