Fix BTP snapshot flushing
@@ -266,8 +266,11 @@ func (bss *btpSnapshot) Bytes() []byte {
}
func (bss *btpSnapshot) Flush() error {
+ if bss.digest != nil {
return bss.digest.Flush(bss.dbase)
}
+ return nil
+}
func (bss *btpSnapshot) NewState() BTPState {
state := new(BTPStateImpl)
