fix sidechain test: provide Context on fake server
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2023-05-30 09:44:01 +02:00
parent cd99095931
commit 8b864628f0
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -178,6 +178,10 @@ type fakeServer struct {
lastHeader atomic.Pointer[mainblock.Header]
}
func (s *fakeServer) Context() context.Context {
return context.Background()
}
func (s *fakeServer) Consensus() *Consensus {
return s.consensus
}