• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision47f5cf7e9dd5481d404c42eee04e91ae8f643593 (tree)
Time2019-07-17 00:50:48
Authorpaladz <453256728@qq.c...>
Commiterpaladz

Log Message

fix bug

Change Summary

Incremental Difference

--- 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 {
126126 if sourceTxHash := locateSideChainTx(tx.Outputs[len(tx.Outputs)-1]); sourceTxHash == "" {
127127 return false
128128 }
129- return false
129+ return true
130130 }
131131
132132 func locateSideChainTx(output *types.TxOutput) string {
@@ -139,7 +139,7 @@ func locateSideChainTx(output *types.TxOutput) string {
139139 return ""
140140 }
141141
142- return hex.EncodeToString(insts[1].Data)
142+ return string(insts[1].Data)
143143 }
144144
145145 func (m *mainchainKeeper) processBlock(db *gorm.DB, block *types.Block, txStatus *bc.TransactionStatus) error {
Show on old repository browser