OSDN Git Service

fix
[bytom/vapor.git] / federation / synchron / common.go
index 0327ce6..0bfc236 100644 (file)
@@ -1,10 +1,6 @@
 package synchron
 
 import (
-       "bytes"
-
-       btmTypes "github.com/bytom/protocol/bc/types"
-
        vaporCfg "github.com/vapor/config"
        "github.com/vapor/errors"
 )
@@ -14,21 +10,3 @@ var (
 
        ErrInconsistentDB = errors.New("inconsistent db status")
 )
-
-func isDepositFromMainchain(tx *btmTypes.Tx) bool {
-       for _, output := range tx.Outputs {
-               if bytes.Equal(output.OutputCommitment.ControlProgram, fedProg) {
-                       return true
-               }
-       }
-       return false
-}
-
-// func isWithdrawalToMainchain(tx *btmTypes.Tx) bool {
-//     for _, input := range tx.Inputs {
-//             if bytes.Equal(input.ControlProgram(), fedProg) {
-//                     return true
-//             }
-//     }
-//     return false
-// }