OSDN Git Service

Modify access token db to sqldb
[bytom/vapor.git] / protocol / block.go
index 1e119a4..d709dac 100644 (file)
@@ -102,7 +102,9 @@ func (c *Chain) connectBlock(block *types.Block) (err error) {
                for key, value := range tx.Entries {
                        switch value.(type) {
                        case *bc.Claim:
-                               c.store.SetWithdrawSpent(&key)
+                               if err := c.store.SetWithdrawSpent(&key); err != nil {
+                                       return err
+                               }
                        default:
                                continue
                        }