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
filter change output (#248)
[bytom/vapor.git]
/
federation
/
synchron
/
mainchain_keeper.go
diff --git
a/federation/synchron/mainchain_keeper.go
b/federation/synchron/mainchain_keeper.go
index
0c1612c
..
aeae20a
100644
(file)
--- a/
federation/synchron/mainchain_keeper.go
+++ b/
federation/synchron/mainchain_keeper.go
@@
-138,11
+138,18
@@
func (m *mainchainKeeper) processBlock(chain *orm.Chain, block *types.Block, txS
}
func (m *mainchainKeeper) isDepositTx(tx *types.Tx) bool {
}
func (m *mainchainKeeper) isDepositTx(tx *types.Tx) bool {
+ for _, input := range tx.Inputs {
+ if bytes.Equal(input.ControlProgram(), m.fedProg) {
+ return false
+ }
+ }
+
for _, output := range tx.Outputs {
if bytes.Equal(output.OutputCommitment.ControlProgram, m.fedProg) {
return true
}
}
for _, output := range tx.Outputs {
if bytes.Equal(output.OutputCommitment.ControlProgram, m.fedProg) {
return true
}
}
+
return false
}
return false
}