Skip to content

Commit

Permalink
opt actpool.Add()
Browse files Browse the repository at this point in the history
  • Loading branch information
Liuhaai committed Dec 31, 2022
1 parent 7371c44 commit 4c9edbb
Show file tree
Hide file tree
Showing 7 changed files with 626 additions and 388 deletions.
3 changes: 1 addition & 2 deletions actpool/actioniterator/actioniterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ func NewActionIterator(accountActs map[string][]action.SealedEnvelope) ActionIte

// LoadNext load next action of account of top action
func (ai *actionIterator) loadNextActionForTopAccount() {
sender := ai.heads[0].SrcPubkey()
callerAddrStr := sender.Address().String()
callerAddrStr := ai.heads[0].SenderAddress().String()
if actions, ok := ai.accountActs[callerAddrStr]; ok && len(actions) > 0 {
ai.heads[0], ai.accountActs[callerAddrStr] = actions[0], actions[1:]
heap.Fix(&ai.heads, 0)
Expand Down
Loading

0 comments on commit 4c9edbb

Please sign in to comment.