MCPcopy Create free account
hub / github.com/CPChain/chain / GetNonceInstance

Function GetNonceInstance

tools/smartcontract/deploy/util.go:78–84  ·  view source on GitHub ↗
(init uint64)

Source from the content-addressed store, hash-verified

76var needInit = true
77
78func GetNonceInstance(init uint64) *nonceCounter {
79 once.Do(func() {
80 nonceInstance = &nonceCounter{nonce: init}
81 needInit = false
82 })
83 return nonceInstance
84}
85
86func (p *nonceCounter) GetNonce() uint64 {
87 p.lock.RLock()

Callers 1

newAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected