mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 19:06:51 +00:00
blockchain: Optimize skip stakebase input.
This optimizes to check the traversal position first since it is more likely in deserializeSpendJournalEntry func.
This commit is contained in:
parent
dcd2d701b5
commit
4fd8cb7c60
@ -680,7 +680,7 @@ func deserializeSpendJournalEntry(serialized []byte, txns []*wire.MsgTx) ([]spen
|
||||
// the associated stxo.
|
||||
for txInIdx := len(tx.TxIn) - 1; txInIdx > -1; txInIdx-- {
|
||||
// Skip stakebase since it has no input.
|
||||
if isVote && txInIdx == 0 {
|
||||
if txInIdx == 0 && isVote {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user