OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0d0956
)
feat(bcrp): close bcrp temporary
author
DeKaiju
<longjinglv@163.com>
Thu, 19 Aug 2021 10:31:48 +0000
(18:31 +0800)
committer
DeKaiju
<longjinglv@163.com>
Thu, 19 Aug 2021 10:31:48 +0000
(18:31 +0800)
protocol/txpool.go
patch
|
blob
|
history
diff --git
a/protocol/txpool.go
b/protocol/txpool.go
index
0cdefbb
..
71fde5e
100644
(file)
--- a/
protocol/txpool.go
+++ b/
protocol/txpool.go
@@
-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