OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dcdf15
)
duplicate_submit_no_error (#547)
author
Poseidon
<shenao.78@163.com>
Mon, 21 Sep 2020 05:46:30 +0000
(13:46 +0800)
committer
GitHub
<noreply@github.com>
Mon, 21 Sep 2020 05:46:30 +0000
(13:46 +0800)
protocol/tx.go
patch
|
blob
|
history
diff --git
a/protocol/tx.go
b/protocol/tx.go
index
1206916
..
55800fe
100644
(file)
--- a/
protocol/tx.go
+++ b/
protocol/tx.go
@@
-29,7
+29,7
@@
func (c *Chain) ValidateTx(tx *types.Tx) (bool, error) {
bh := c.BestBlockHeader()
isOrphan, err := c.validateTx(tx, bh)
- if err == nil {
+ if err == nil
&& !isOrphan
{
c.markTransactions(tx)
}
return isOrphan, err