minor cleanup of feeKeeper

This commit is contained in:
Ethan Buchman
2018-07-03 00:08:00 -04:00
parent 32c8993d1e
commit a6dc81defa
2 changed files with 2 additions and 10 deletions
-8
View File
@@ -46,7 +46,6 @@ func NewContext(ms MultiStore, header abci.Header, isCheckTx bool, logger log.Lo
c = c.WithLogger(logger)
c = c.WithSigningValidators(nil)
c = c.WithGasMeter(NewInfiniteGasMeter())
c = c.WithFeeCollection(0)
return c
}
@@ -133,7 +132,6 @@ const (
contextKeyLogger
contextKeySigningValidators
contextKeyGasMeter
contextKeyFeeCollector
)
// NOTE: Do not expose MultiStore.
@@ -168,9 +166,6 @@ func (c Context) SigningValidators() []abci.SigningValidator {
func (c Context) GasMeter() GasMeter {
return c.Value(contextKeyGasMeter).(GasMeter)
}
func (c Context) FeeCollection() int64 {
return c.Value(contextKeyFeeCollector).(int64)
}
func (c Context) WithMultiStore(ms MultiStore) Context {
return c.withValue(contextKeyMultiStore, ms)
}
@@ -199,9 +194,6 @@ func (c Context) WithSigningValidators(SigningValidators []abci.SigningValidator
func (c Context) WithGasMeter(meter GasMeter) Context {
return c.withValue(contextKeyGasMeter, meter)
}
func (c Context) WithFeeCollection(fee int64) Context {
return c.withValue(contextKeyFeeCollector, fee)
}
// Cache the multistore and return a new cached context. The cached context is
// written to the context when writeCache is called.