From 70756bcbe6f91089ac1b1fe0083b86bf0b73fe99 Mon Sep 17 00:00:00 2001 From: Luke Williams Date: Wed, 15 May 2019 10:59:39 +0200 Subject: [PATCH] ubqhash/consensus: ubqhash.FakeFull -> ModeFullFake --- consensus/ubqhash/consensus.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/consensus/ubqhash/consensus.go b/consensus/ubqhash/consensus.go index 741d2b63bc..5cb2ce1ed1 100644 --- a/consensus/ubqhash/consensus.go +++ b/consensus/ubqhash/consensus.go @@ -88,7 +88,7 @@ func (ubqhash *Ubqhash) Author(header *types.Header) (common.Address, error) { // stock Ethereum ubqhash engine. func (ubqhash *Ubqhash) VerifyHeader(chain consensus.ChainReader, header *types.Header, seal bool) error { // If we're running a full engine faking, accept any input as valid - if ubqhash.fakeFull { + if ubqhash.config.PowMode == ModeFullFake { return nil } // Short circuit if the header is known, or it's parent not @@ -109,7 +109,7 @@ func (ubqhash *Ubqhash) VerifyHeader(chain consensus.ChainReader, header *types. // a results channel to retrieve the async verifications. func (ubqhash *Ubqhash) VerifyHeaders(chain consensus.ChainReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error) { // If we're running a full engine faking, accept any input as valid - if ubqhash.fakeFull || len(headers) == 0 { + if ubqhash.config.PowMode == ModeFullFake || len(headers) == 0 { abort, results := make(chan struct{}), make(chan error, len(headers)) for i := 0; i < len(headers); i++ { results <- nil @@ -189,7 +189,7 @@ func (ubqhash *Ubqhash) verifyHeaderWorker(chain consensus.ChainReader, headers // rules of the stock Ethereum ubqhash engine. func (ubqhash *Ubqhash) VerifyUncles(chain consensus.ChainReader, block *types.Block) error { // If we're running a full engine faking, accept any input as valid - if ubqhash.fakeFull { + if ubqhash.config.PowMode == ModeFullFake { return nil } // Verify that there are at most 2 uncles included in this block