mirror of https://github.com/poanetwork/quorum.git
permission: minor fixes
This commit is contained in:
parent
50f5852ae4
commit
40342a1322
|
@ -62,6 +62,8 @@ func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts {
|
|||
}
|
||||
}
|
||||
|
||||
// Quorum
|
||||
//
|
||||
// NewWalletTransactor is a utility method to easily create a transaction signer
|
||||
// from a wallet account
|
||||
func NewWalletTransactor(w accounts.Wallet, from accounts.Account) *TransactOpts {
|
||||
|
|
|
@ -64,7 +64,6 @@ func Fatalf(format string, args ...interface{}) {
|
|||
}
|
||||
|
||||
func StartNode(stack *node.Node) {
|
||||
|
||||
if err := stack.Start(); err != nil {
|
||||
Fatalf("Error starting protocol stack: %v", err)
|
||||
}
|
||||
|
|
|
@ -277,17 +277,6 @@ func NewTxPool(config TxPoolConfig, chainconfig *params.ChainConfig, chain block
|
|||
return pool
|
||||
}
|
||||
|
||||
// Nonce returns the nonce for the given addr from the pending state.
|
||||
// Can only be used for local transactions.
|
||||
func (pool *TxPool) Nonce(addr common.Address) uint64 {
|
||||
pool.mu.Lock()
|
||||
defer pool.mu.Unlock()
|
||||
if pool.pendingState == nil {
|
||||
pool.lockedReset(nil, nil)
|
||||
}
|
||||
return pool.pendingState.GetNonce(addr)
|
||||
}
|
||||
|
||||
// loop is the transaction pool's main event loop, waiting for and reacting to
|
||||
// outside blockchain events as well as for various reporting and transaction
|
||||
// eviction events.
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
package types
|
||||
|
||||
import (
|
||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||
"math/big"
|
||||
"sync"
|
||||
|
||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/hashicorp/golang-lru"
|
||||
lru "github.com/hashicorp/golang-lru"
|
||||
)
|
||||
|
||||
type AccessType uint8
|
||||
|
|
Loading…
Reference in New Issue