OSDN Git Service

init processChainInfo
authorHAOYUatHZ <haoyu@protonmail.com>
Wed, 12 Jun 2019 13:39:03 +0000 (21:39 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Wed, 12 Jun 2019 13:39:03 +0000 (21:39 +0800)
federation/synchron/mainchain_keeper.go

index c53a90d..8ae19fe 100644 (file)
@@ -108,9 +108,20 @@ func (m *mainchainKeeper) processBlock(block *btmTypes.Block) error {
                return err
        }
 
-       return nil
+       // for i, tx := range txs {
+       //      if isDepositFromMainchain(tx) {
+       //              bp.processDepositFromMainchain(uint64(i), tx)
+       //      }
+       //      if isWithdrawalToMainchain(tx) {
+       //              bp.processWithdrawalToMainchain(uint64(i), tx)
+       //      }
+       // }
+
+       return m.processChainInfo()
 }
 
+func (m *mainchainKeeper) processChainInfo() error {}
+
 func (m *mainchainKeeper) processIssuing(txs []*btmTypes.Tx) error {
        for _, tx := range txs {
                for _, input := range tx.Inputs {