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

Method SetCoinbase

protocols/cpc/api.go:172–179  ·  view source on GitHub ↗
(coinbase common.Address)

Source from the content-addressed store, hash-verified

170}
171
172func (api *PrivateMinerAPI) SetCoinbase(coinbase common.Address) bool {
173 // make sure the api executes in sequence(no parallel)
174 api.lock.Lock()
175 defer api.lock.Unlock()
176
177 api.c.SetCoinbase(coinbase)
178 return true
179}
180
181// PrivateAdminAPI is the collection of cpchain full node-related APIs
182// exposed over the private admin endpoint.

Callers 5

testGetNodeDataFunction · 0.45
testGetReceiptFunction · 0.45
makeChainFunction · 0.45
newBlockchainWithDBFunction · 0.45

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by 5

testGetNodeDataFunction · 0.36
testGetReceiptFunction · 0.36
makeChainFunction · 0.36
newBlockchainWithDBFunction · 0.36