OSDN Git Service

clean up
authorHAOYUatHZ <haoyu@protonmail.com>
Tue, 18 Jun 2019 08:17:49 +0000 (16:17 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Tue, 18 Jun 2019 08:17:49 +0000 (16:17 +0800)
federation/warder.go

index dd7a6ad..7c9ebb5 100644 (file)
@@ -172,10 +172,6 @@ func (w *warder) proposeDestTx(tx *orm.CrossTransaction) (interface{}, string, e
        }
 }
 
-// TODO:
-// get signInsts?
-// create txSign in db
-// addInputWitness(tx, signInsts)?
 func (w *warder) buildSidechainTx(ormTx *orm.CrossTransaction) (*vaporTypes.Tx, string, error) {
        destTxData := &vaporTypes.TxData{Version: 1, TimeRange: 0}
        muxID := &vaporBc.Hash{}
@@ -255,7 +251,6 @@ func (w *warder) initDestTxSigns(destTx interface{}, ormTx *orm.CrossTransaction
                        Status:             common.CrossTxSignPendingStatus,
                })
        }
-
        return w.db.Create(crossTxSigns).Error
 }