OSDN Git Service

feat(bcrp): close bcrp temporary
authorDeKaiju <longjinglv@163.com>
Thu, 19 Aug 2021 10:31:48 +0000 (18:31 +0800)
committerDeKaiju <longjinglv@163.com>
Thu, 19 Aug 2021 10:31:48 +0000 (18:31 +0800)
protocol/txpool.go

index 0cdefbb..71fde5e 100644 (file)
@@ -213,9 +213,7 @@ func isTransactionZeroOutput(tx *types.Tx) bool {
 func isInvalidBCRPTx(tx *types.Tx) bool {
        for _, output := range tx.TxData.Outputs {
                if bcrp.IsBCRPScript(output.ControlProgram) {
-                       if output.AssetId.String() != consensus.BTMAssetID.String() || output.Amount < consensus.BCRPRequiredBTMAmount {
-                               return true
-                       }
+                       return true
                }
        }
        return false