2018-07-18 20:59:40 +00:00
|
|
|
package fakes
|
|
|
|
|
2018-10-11 20:25:14 +00:00
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
"errors"
|
|
|
|
"github.com/ethereum/go-ethereum/core/types"
|
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/core"
|
|
|
|
)
|
2018-07-18 20:59:40 +00:00
|
|
|
|
|
|
|
var FakeError = errors.New("failed")
|
2018-10-11 20:25:14 +00:00
|
|
|
|
|
|
|
var rawFakeHeader, _ = json.Marshal(types.Header{})
|
|
|
|
var FakeHeader = core.Header{
|
|
|
|
Raw: rawFakeHeader,
|
|
|
|
Timestamp: "111111111",
|
|
|
|
}
|
|
|
|
|
|
|
|
func GetFakeHeader(blockNumber int64) core.Header {
|
|
|
|
return core.Header{
|
|
|
|
BlockNumber: blockNumber,
|
|
|
|
Raw: rawFakeHeader,
|
|
|
|
Timestamp: "111111111",
|
|
|
|
}
|
|
|
|
}
|