OSDN Git Service
(root)
/
bytom
/
bytom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix trace scheduler (#2113)
[bytom/bytom.git]
/
contract
/
instance.go
diff --git
a/contract/instance.go
b/contract/instance.go
index
18c76f9
..
dd53c04
100644
(file)
--- a/
contract/instance.go
+++ b/
contract/instance.go
@@
-121,11
+121,7
@@
func (i *instanceIndex) add(instance *Instance) {
}
func (i *instanceIndex) save(newInst *Instance) {
- if old, ok := i.traceIdToInst[newInst.TraceID]; ok {
- for _, utxo := range old.UTXOs {
- delete(i.utxoHashToInst, utxo.Hash)
- }
- }
+ i.remove(newInst.TraceID)
i.add(newInst)
}