OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96a8fab
)
fix bug
fix_fed_connect_issue
author
paladz
<453256728@qq.com>
Tue, 16 Jul 2019 15:50:48 +0000
(23:50 +0800)
committer
paladz
<453256728@qq.com>
Tue, 16 Jul 2019 15:50:48 +0000
(23:50 +0800)
toolbar/federation/synchron/mainchain_keeper.go
patch
|
blob
|
history
diff --git
a/toolbar/federation/synchron/mainchain_keeper.go
b/toolbar/federation/synchron/mainchain_keeper.go
index
af90a7d
..
37d5aeb
100644
(file)
--- a/
toolbar/federation/synchron/mainchain_keeper.go
+++ b/
toolbar/federation/synchron/mainchain_keeper.go
@@
-126,7
+126,7
@@
func (m *mainchainKeeper) isWithdrawalTx(tx *types.Tx) bool {
if sourceTxHash := locateSideChainTx(tx.Outputs[len(tx.Outputs)-1]); sourceTxHash == "" {
return false
}
- return
fals
e
+ return
tru
e
}
func locateSideChainTx(output *types.TxOutput) string {
@@
-139,7
+139,7
@@
func locateSideChainTx(output *types.TxOutput) string {
return ""
}
- return
hex.EncodeToS
tring(insts[1].Data)
+ return
s
tring(insts[1].Data)
}
func (m *mainchainKeeper) processBlock(db *gorm.DB, block *types.Block, txStatus *bc.TransactionStatus) error {