(coinbase common.Address)
| 170 | } |
| 171 | |
| 172 | func (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. |