diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-06 06:12:09 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-07 03:40:31 +0800 |
commit | 63caddea62453863de84a4b53e14fe3e61d3008f (patch) | |
tree | f9fa506486272d49e708b44e9f65dc86c196aeea /packages/web3-wrapper/src/web3_wrapper.ts | |
parent | 36b01fbdcfcda93d185e018e31a919c36f2848ac (diff) | |
download | dexon-0x-contracts-63caddea62453863de84a4b53e14fe3e61d3008f.tar dexon-0x-contracts-63caddea62453863de84a4b53e14fe3e61d3008f.tar.gz dexon-0x-contracts-63caddea62453863de84a4b53e14fe3e61d3008f.tar.bz2 dexon-0x-contracts-63caddea62453863de84a4b53e14fe3e61d3008f.tar.lz dexon-0x-contracts-63caddea62453863de84a4b53e14fe3e61d3008f.tar.xz dexon-0x-contracts-63caddea62453863de84a4b53e14fe3e61d3008f.tar.zst dexon-0x-contracts-63caddea62453863de84a4b53e14fe3e61d3008f.zip |
Small fixes and cleanup
Diffstat (limited to 'packages/web3-wrapper/src/web3_wrapper.ts')
-rw-r--r-- | packages/web3-wrapper/src/web3_wrapper.ts | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/packages/web3-wrapper/src/web3_wrapper.ts b/packages/web3-wrapper/src/web3_wrapper.ts index ed2d0a119..a19253449 100644 --- a/packages/web3-wrapper/src/web3_wrapper.ts +++ b/packages/web3-wrapper/src/web3_wrapper.ts @@ -407,32 +407,6 @@ export class Web3Wrapper { return receipt; } /** - * Start the CPU mining process with the given number of threads and - * generate a new DAG if need be. - * @param threads The number of threads to mine on. - */ - public async minerStartAsync(threads: number = 1): Promise<void> { - await this._sendRawPayloadAsync<boolean>({ - method: 'miner_start', - params: [threads], - }); - } - /** - * Stop the CPU mining process. - * @param threads The number of threads to mine on. - */ - public async minerStopAsync(): Promise<void> { - await this._sendRawPayloadAsync<boolean>({ method: 'miner_stop', params: [] }); - } - /** - * Returns true if client is actively mining new blocks. - * @returns A boolean indicating whether the node is currently mining. - */ - public async isMiningAsync(): Promise<boolean> { - const isMining = await promisify<boolean>(this._web3.eth.getMining)(); - return isMining; - } - /** * Sets the current head of the local chain by block number. Note, this is a * destructive action and may severely damage your chain. Use with extreme * caution. |