OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Modify access token db to sqldb
[bytom/vapor.git]
/
protocol
/
block.go
diff --git
a/protocol/block.go
b/protocol/block.go
index
1e119a4
..
d709dac
100644
(file)
--- a/
protocol/block.go
+++ b/
protocol/block.go
@@
-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
}