mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-31 16:21:21 +00:00
6272559fb7
Instead of getting the pending block with latest payload id, we just store the latest block built and serve it in remote backend
16 lines
322 B
Go
16 lines
322 B
Go
package builder
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/ledgerwatch/erigon/core/types"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestLatestBlockBuilt(t *testing.T) {
|
|
s := NewLatestBlockBuiltStore()
|
|
b := types.NewBlockWithHeader(&types.Header{})
|
|
s.AddBlockBuilt(b)
|
|
assert.Equal(t, b.Header(), s.BlockBuilt().Header())
|
|
}
|