forked from cerc-io/ipld-eth-server
Update after rebasing with staging
This commit is contained in:
parent
639c561fdf
commit
8e166f2a56
@ -150,10 +150,6 @@ func (blockChain *BlockChain) getPOAHeader(blockNumber int64) (header core.Heade
|
|||||||
if POAHeader.Number == nil {
|
if POAHeader.Number == nil {
|
||||||
return header, ErrEmptyHeader
|
return header, ErrEmptyHeader
|
||||||
}
|
}
|
||||||
time := POAHeader.Time.ToInt()
|
|
||||||
if time == nil {
|
|
||||||
time = big.NewInt(0)
|
|
||||||
}
|
|
||||||
return blockChain.headerConverter.Convert(&types.Header{
|
return blockChain.headerConverter.Convert(&types.Header{
|
||||||
ParentHash: POAHeader.ParentHash,
|
ParentHash: POAHeader.ParentHash,
|
||||||
UncleHash: POAHeader.UncleHash,
|
UncleHash: POAHeader.UncleHash,
|
||||||
|
@ -31,7 +31,6 @@ func (converter HeaderConverter) Convert(gethHeader *types.Header, blockHash str
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
strInt := strconv.FormatUint(gethHeader.Time, 10)
|
|
||||||
coreHeader := core.Header{
|
coreHeader := core.Header{
|
||||||
Hash: blockHash,
|
Hash: blockHash,
|
||||||
BlockNumber: gethHeader.Number.Int64(),
|
BlockNumber: gethHeader.Number.Int64(),
|
||||||
|
Loading…
Reference in New Issue
Block a user