|
|
@ -5,8 +5,6 @@ import ( |
|
|
|
"crypto/ecdsa" |
|
|
|
"crypto/ecdsa" |
|
|
|
"encoding/gob" |
|
|
|
"encoding/gob" |
|
|
|
"fmt" |
|
|
|
"fmt" |
|
|
|
"github.com/harmony-one/harmony/client" |
|
|
|
|
|
|
|
clientService "github.com/harmony-one/harmony/client/service" |
|
|
|
|
|
|
|
"math/big" |
|
|
|
"math/big" |
|
|
|
"math/rand" |
|
|
|
"math/rand" |
|
|
|
"os" |
|
|
|
"os" |
|
|
@ -16,6 +14,9 @@ import ( |
|
|
|
"sync/atomic" |
|
|
|
"sync/atomic" |
|
|
|
"time" |
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/harmony-one/harmony/client" |
|
|
|
|
|
|
|
clientService "github.com/harmony-one/harmony/client/service" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/params" |
|
|
|
"github.com/ethereum/go-ethereum/params" |
|
|
@ -163,7 +164,7 @@ func (node *Node) addPendingTransactionsAccount(newTxs types.Transactions) { |
|
|
|
node.pendingTxMutexAccount.Lock() |
|
|
|
node.pendingTxMutexAccount.Lock() |
|
|
|
node.pendingTransactionsAccount = append(node.pendingTransactionsAccount, newTxs...) |
|
|
|
node.pendingTransactionsAccount = append(node.pendingTransactionsAccount, newTxs...) |
|
|
|
node.pendingTxMutexAccount.Unlock() |
|
|
|
node.pendingTxMutexAccount.Unlock() |
|
|
|
node.log.Debug("Got more transactions (account model)", "num", len(newTxs), "totalPending", len(node.pendingTransactionsAccount), "node", node) |
|
|
|
node.log.Debug("Got more transactions (account model)", "num", len(newTxs), "totalPending", len(node.pendingTransactionsAccount)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Take out a subset of valid transactions from the pending transaction list
|
|
|
|
// Take out a subset of valid transactions from the pending transaction list
|
|
|
|