* fix bug for vote & normal output
* 修复提交同样的错误交易时,放回成功的bug
Co-authored-by: Colt-Z <453256728@qq.com>
bh := c.BestBlockHeader()
bh := c.BestBlockHeader()
- return c.validateTx(tx, bh)
+ isOrphan, err := c.validateTx(tx, bh)
+ if err == nil {
+ c.markTransactions(tx)
+ }
+ return isOrphan, err
}
// validateTx validates the given transaction without checking duplication.
}
// validateTx validates the given transaction without checking duplication.