GithubHelp home page GithubHelp logo

0xbitcoin / 0xbitcoin-miner Goto Github PK

View Code? Open in Web Editor NEW
83.0 11.0 65.0 906.43 MB

Mine the 0xbitcoin ERC20 token using a command line NodeJS application

Home Page: http://0xbitcoin.org

JavaScript 6.25% Python 0.39% Makefile 0.06% C 64.19% C++ 9.23% Cuda 19.30% M4 0.57%

0xbitcoin-miner's Introduction

0xBitcoin ERC20 Token Miner

LICENSE GPL

Solves proof of work to mine supported ERC20 tokens. This is a CPU miner. (See Releases for links to GPU miners.)

Update 1.6 - Config Files For Days

This new build uses miner-config.js for setting parameters and no longer has an active command line. If you do not have an Ethereum account, it is recommended that you use Metamask to generate one.

Official Releases Downloads

Download Packaged Releases

Building from Source

Setup (Windows/Linux)

  1. Install NodeJS 10 (nvm install 10)
  2. Clone/download the project
  3. Open a terminal, cd into the project folder and run 'npm install' to install dependencies
  4. Run the command 'npm run build' to build C files with node-gyp
  5. Set up the config file 'miner-config.json' (duplicate miner-config-sample as a reference)
  6. Start the miner with 'npm run miner'

Setup (Mac)

  1. Install Homebrew & NodeJS 10
  2. Run 'brew install yarn' to install yarn package manager
  3. Clone/download this project
  4. Open a terminal, cd into the project folder and run 'yarn'
  5. Run the command 'yarn build' to build C files with node-gyp
  6. Set up the config file 'miner-config.json' (duplicate miner-config-sample as a reference)
  7. Start the miner with 'node index.js'

NOT WORKING ?

Make sure you have build-essential installed to compile C code and make sure you have python3.

Try these commands:

node-gyp rebuild

Miner-Config.js File

You must create a file called 'miner-config.json' in the same directory as index.js. Duplicate 'miner-config-sample.json' and rename it.

If you do not have a public address or private key, use Metamask or another Etherum wallet to make them.

REMINDER: You >can< set the web3provider to a ropsten, mainnet, or other type of test-network provider and the software will still work. If solo mining (not to a pool) just be sure to define the correct contract address for that network and be sure your account has a small amount of ether (or test-ether).

"mining_account_public_address":"0x111111",
"mining_account_private_key":"1234567",
"mining_style":"solo" OR "pool",
"contract_address":"0xb6...",
"pool_url":"http://tokenminingpool.com:8080",
"gas_price_gwei":10,
"cpu_thread_count": 1,
"web3provider": "https://infura.io/API/apikey...."

Getting Started

  1. Duplicate the 'miner-config-sample.json' file and rename it to 'miner-config.json'
  2. Set the parameters in this file appropriately
  3. In the console, run the command 'node index.js' to start mining

Pool Mining

  • When mining into a pool, your gasprice does not matter and you will pay NO GAS FEES
  • Every pool is different so consult each pool owner. Typically, pools will offer a token withdraw mechanism or automatically send tokens to your address on a periodic basis or when a limit is reached

Solo Mining

  • IF SOLO MINING it is necessary to fill the mining account (it is an Ethereum account) with a small amount of ether.
  • Typically 0.005 eth is good enough to get started. The ether is used for gas to make function calls to the token smart contract when your miner finds a solution to the Proof of Work.
  • When the gas is spent that means that you have found a solution! If you were the first to find it, you will be rewarded with 0xbitcoin tokens. (See the block explorer for typical gas prices at the current moment.)

Testing

npm run test

Credits

  1. Zegordo (Developed the accelerated CPU Miner)

     ETH address [0x8AE981d92875C88f713600EB7dC4D23FA7E0E621]
    

Tokens that can be mined using Proof of Work:

  1. 0xBitcoin token - http://0xbitcoin.org - https://github.com/0xbitcoin/0xbitcoin-token

0xbitcoin-miner's People

Contributors

ethereumdegen avatar lttofu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

0xbitcoin-miner's Issues

issue gas

New difficulty: 1
Restarting mining operations
Mining for 0x526e27CdB8Ef2AAc2A5569A4EbA78B5409225Bd8
Gas price is 21000 gwei
Solution found!
Submit mined solution for challenge 0x16159713e62eae369d0c632a4de83e2e6edf6b2b938811e82cebad505a7766c4

---Submitting solution for reward---
nonce 0x3f8453a79c4d2773ac38dc4be113b0e4a448f539c3ebc0885e727897fedb378a
challenge_digest 0x0202baf52b58659d807689c3f83c569fd4ea0ebd32be0587db3bf8e0663c9cc3

txCount 0
estimatedGasCost 169250
txData 0x1801fbe53f8453a79c4d2773ac38dc4be113b0e4a448f539c3ebc0885e727897fedb378a0202baf52b58659d807689c3f83c569fd4ea0ebd32be0587db3bf8e0663c9cc3
addressFrom 0x526e27CdB8Ef2AAc2A5569A4EbA78B5409225Bd8
addressTo 0x8297D4EA0d2B9389681Ca7cDB527bf5787a5799D
Error: Returned error: insufficient funds for gas * price + value
at Object.ErrorResponse (/root/FreeDomCoin/miner/node_modules/web3-core-helpers/src/errors.js:29:16)
at /root/FreeDomCoin/miner/node_modules/web3-core-requestmanager/src/index.js:137:36
at XMLHttpRequest.request.onreadystatechange (/root/FreeDomCoin/miner/node_modules/web3-providers-http/src/index.js:77:13)
at XMLHttpRequestEventTarget.dispatchEvent (/root/FreeDomCoin/miner/node_modules/xhr2/lib/xhr2.js:64:18)
at XMLHttpRequest._setReadyState (/root/FreeDomCoin/miner/node_modules/xhr2/lib/xhr2.js:354:12)
at XMLHttpRequest._onHttpResponseEnd (/root/FreeDomCoin/miner/node_modules/xhr2/lib/xhr2.js:509:12)
at IncomingMessage. (/root/FreeDomCoin/miner/node_modules/xhr2/lib/xhr2.js:469:24)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

dose anyone know what to do to fix this?

NODE_MODULE_VERSION Error

I followed the instructions but i am getting the following error, any idea why?

$ node index.js
module.js:691
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: The module '/home/nimiq/0xbitcoin-miner/build/Release/cpuminer.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 59. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (module.js:691:18)
    at Module.load (module.js:575:32)
    at tryModuleLoad (module.js:515:12)
    at Function.Module._load (module.js:507:3)
    at Module.require (module.js:606:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/nimiq/0xbitcoin-miner/0xbitcoinminer-accel.js:11:16)
    at Module._compile (module.js:662:30)
    at Object.Module._extensions..js (module.js:673:10)
    at Module.load (module.js:575:32)

Feature Request Halt Mining

Feature suggestion: "halt": stops mining and waits for new "mine" command. Clears current block and hash information and wait for new challenge # to prevent wasted CPU/GPU cycles on resume.
Use case: solo miners who also use machine for CPU intensive tasks. Can be handled somewhat manually with setting affinity, but some tasks require stopping of mining to execute in timely fashion. Alternative: add affinity control to miner.

'nvcc' is not recognized

I installed Cuda but I am still getting the following error when trying to run yarn:

  compile cuda file on linux
  'nvcc' is not recognized as an internal or external command,
  operable program or batch file.

Error: Returned error: gas required exceeds allowance or always failing transaction

Submitting a mined solution fails with this stacktrace:

submit mined solution with challenge  0x6fb8ac91ecdfef4ca0d673b0d4508f9c9a85ca4cbeaed448b1801cc103733cf8


---Submitting solution for reward---
nonce  0x86bf2b01f2f87eb05daa0f946c91e798ec0c01b6a6eef7235d49532c704b8627
challenge_digest  0x000000cf8b8c307a351b526cbe09c23be90aba168d933853ffd727206bd6eff5


txCount 0
Error: Returned error: gas required exceeds allowance or always failing transaction
    at Object.ErrorResponse (/Users/erik/Desktop/0xbitcoin-miner-master/node_modules/web3-core-helpers/src/errors.js:29:16)
    at /Users/erik/Desktop/0xbitcoin-miner-master/node_modules/web3-core-requestmanager/src/index.js:137:36
    at XMLHttpRequest.request.onreadystatechange (/Users/erik/Desktop/0xbitcoin-miner-master/node_modules/web3-providers-http/src/index.js:77:13)
    at XMLHttpRequestEventTarget.dispatchEvent (/Users/erik/Desktop/0xbitcoin-miner-master/node_modules/xhr2/lib/xhr2.js:64:18)
    at XMLHttpRequest._setReadyState (/Users/erik/Desktop/0xbitcoin-miner-master/node_modules/xhr2/lib/xhr2.js:354:12)
    at XMLHttpRequest._onHttpResponseEnd (/Users/erik/Desktop/0xbitcoin-miner-master/node_modules/xhr2/lib/xhr2.js:509:12)
    at IncomingMessage.<anonymous> (/Users/erik/Desktop/0xbitcoin-miner-master/node_modules/xhr2/lib/xhr2.js:469:24)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1055:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

Latest binary is broken (binaries release for accelerated cpu solo mining)

Hi Ad,
that's what I get when I try to run the updated executable you just released

`pkg/prelude/bootstrap.js:1172
throw error;
^

Error: Cannot find module './build/Release/cpuminer'

  1. If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    at Function.Module._resolveFilename (module.js:534:15)
    at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1269:46)
    at Function.Module._load (module.js:464:25)
    at Module.require (module.js:577:17)
    at Module.require (pkg/prelude/bootstrap.js:1153:31)
    at require (internal/module.js:11:18)
    at Object. (C:\snapshot\0xbitcoin-miner\0xbitcoinminer-accel.js:0:0)
    at Module._compile (pkg/prelude/bootstrap.js:1243:22)
    at Object.Module._extensions..js (module.js:644:10)
    at Module.load (module.js:552:32)`

Core dump on Linux fix

Hi all,

So I have an server, HP DL380 G7 with two Intel Xeon (X5660) CPUs running
ubuntu-server-17.10. I had some issues getting the miner working, it would give me an core dump error message.

To get it working I had to build it from source and edit one file.

in binding.gyp search for gcc, it should be on line 24 change gcc to clang-3.8 instead.

After that building worked fine as per instructions and I could run node index.js afterwards.

A disclaimer, I am not fluent in buliding from source or coding in general, but maybe this helps someone.

yarn install command fails on my machine

Mac: 10.13.3 (17D47)
yarn: 1.5.1
npm: 5.6.0
node: v8.9.4

I did not face this issue until I pulled latest master. Before that I was using an old commit from about 3 weeks ago.

The xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance lines appear to not be the fatal error after checking online, since most sources say that can be ignored. Indeed, there are a few projects I have that get this error, but still function.

Does anyone else face this installation error?

output from yarn:

yarn install v1.5.1
[1/5] ๐Ÿ”  Validating package.json...
[2/5] ๐Ÿ”  Resolving packages...
success Already up-to-date.
$ node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/myuser/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/myuser/dapps/0xbitcoin-miner/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/myuser/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/myuser/.node-gyp/8.9.4/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/myuser/.node-gyp/8.9.4',
gyp info spawn args   '-Dnode_gyp_dir=/Users/myuser/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/myuser/.node-gyp/8.9.4/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/myuser/dapps/0xbitcoin-miner',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/cpuminer/cpp/cpuminer/addon.o
../cpp/cpuminer/addon.cc:57:19: warning: 'Call' is deprecated [-Wdeprecated-declarations]
        callback->Call(2, argv);
                  ^
../node_modules/nan/nan.h:1567:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../node_modules/nan/nan.h:98:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
1 warning generated.
  CXX(target) Release/obj.target/cpuminer/cpp/cpuminer/cpuminer.o
  CXX(target) Release/obj.target/cpuminer/cpp/cpuminer/solver.o
  CC(target) Release/obj.target/cpuminer/cpp/cpuminer/sha3.o
  SOLINK_MODULE(target) Release/cpuminer.node
  RULE binding_gyp_gpuminer_target_cuda_on_linux_0 Release/obj.target/gpuminer/geni/cuda_sha256d.o
/bin/sh: nvcc: command not found
make: *** [Release/obj.target/gpuminer/geni/cuda_sha256d.o] Error 127
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/myuser/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 17.4.0
gyp ERR! command "/Users/myuser/.nvm/versions/node/v8.9.4/bin/node" "/Users/myuser/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/myuser/dapps/0xbitcoin-miner
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c node-gyp rebuild
Directory: /Users/myuser/dapps/0xbitcoin-miner
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/Users/myuser/dapps/0xbitcoin-miner/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

how can i fix error

C:\Users\mining\Desktop\0xbitcoin-miner-master>yarn
yarn install v1.9.4
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
[1/5] โ  keccak
[2/5] โ  secp256k1
[3/5] โ ‚ sha3
[-/5] โ ‚ waiting...
error C:\Users\mining\Desktop\0xbitcoin-miner-master\node_modules\sha3: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: C:\Users\mining\Desktop\0xbitcoin-miner-master\node_modules\sha3
Output:
C:\Users\mining\Desktop\0xbitcoin-miner-master\node_modules\sha3>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\mining\Desktop\0xbitcoin-miner-master\node_modules\sha3

windows miner 1.5.23 installation error

windows miner 1.5.23 installation error

the version of this file is not compatible with the version of windows you'r running. check your computer system information to see whether you need an x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher
i use windows 7 32 bit
any solution for it

Can't login anymore to created account

Hi, today i mined for a couple of hours and then closed the application. After starting it again i had to login and tried with my password but didnt work, then i figured i had to select my account again so i selected the wallet adress it created for me but then it shows an unhandles promise rejection and then the window closes. i just managed to grab a quick screenshot before it dissapeared.

huh

How will I be sure from the server side if I m even mining?

How will I be sure from the server side if I m even mining?
I see my miner windows geting jobs, mining difficulty and hashing etc. But I dnt see any coins for a very long time. Nor the ETH address shows any reduction for using gas. How can I be sure that I m doing the right thing?

Unhandled error

Running the miner on 0xBTC

The miner displays the following error in the miner command prompt

Unhandled rejection Error: Transaction was not mined within 50 blocks, please make sure your transaction was properly send. Be aware that it might still be mined!
at C:\snapshot\0xbitcoin-miner\node_modules\web3-core-method\src\index.js:0:0
at tryCatcher (C:\snapshot\0xbitcoin-miner\node_modules\bluebird\js\release\util.js:16:23)
at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\0xbitcoin-miner\node_modules\bluebird\js\release\promise.js:497:31)
at Promise.module.exports.Promise._settlePromise (C:\snapshot\0xbitcoin-miner\node_modules\bluebird\js\release\promise.js:555:18)
at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\0xbitcoin-miner\node_modules\bluebird\js\release\promise.js:600:10)
at Promise.module.exports.Promise._settlePromises (C:\snapshot\0xbitcoin-miner\node_modules\bluebird\js\release\promise.js:679:18)
at Async._drainQueue (C:\snapshot\0xbitcoin-miner\node_modules\bluebird\js\release\async.js:125:16)
at Async._drainQueues (C:\snapshot\0xbitcoin-miner\node_modules\bluebird\js\release\async.js:135:10)
at Immediate.__dirname.Async.drainQueues [as _onImmediate] (C:\snapshot\0xbitcoin-miner\node_modules\bluebird\js\release\async.js:16:14)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)

The error log is empty. stdout appears to have found a solution at the approximate time at which that error was displayed - this seems consistent with the malformed transaction error.

"2018:02:15:18:53:24Giving mined solution to network interface 0x05ac257cf530fd87ce85a7373d9cab943ecdc66200d3f9a8e3a5069ae7be602d\n","2018:02:15:18:53:24Popping queued mining solution [object Object]\n","2018:02:15:18:53:24Submitting Solution 0x0000006fb41dda248fea91a5970f22cc7ac2ba4ed6098950fc7fefa5d633b87c\n"

Cannot Build on Fresh Windows 10

Hi, I am having difficulty building the miner on a fresh Windows 10 virtual machine.

Installed

  • node v8.11.3
  • git
  • CUDA 9.2.88

Then

npm install -g yarn
npm install --global --production windows-build-tools
git clone https://github.com/0xbitcoin/0xbitcoin-miner
cd 0xbitcoin-miner
yarn

Here is the output. Whats wrong?

yarn install v1.7.0
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
$ node-gyp rebuild

C:\Users\vm-win10\Desktop\0xbitcoin-miner>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Users\vm-win10\.windows-build-tools\python27\python.exe
gyp info spawn args [ 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-G',
gyp info spawn args   'msvs_version=auto',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\vm-win10\\Desktop\\0xbitcoin-miner\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\vm-win10\\.node-gyp\\8.11.3\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\vm-win10\\.node-gyp\\8.11.3',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\Users\\vm-win10\\.node-gyp\\8.11.3\\<(target_arch)\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\vm-win10\\Desktop\\0xbitcoin-miner',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\Users\\vm-win10\\Desktop\\0xbitcoin-miner\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  addon.cc
c:\users\vm-win10\desktop\0xbitcoin-miner\cpp\cpuminer\cpuminer.h(12): warning C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc [C:\Users\v
m-win10\Desktop\0xbitcoin-miner\build\cpuminer.vcxproj]
  cpuminer.cpp
..\cpp\cpuminer\cpuminer.cpp(8): warning C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc [C:\Users\vm-win10\Desktop\0xbitcoin-miner\build\
cpuminer.vcxproj]
  solver.cpp
..\cpp\cpuminer\solver.cpp(63): warning C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc [C:\Users\vm-win10\Desktop\0xbitcoin-miner\build\c
puminer.vcxproj]
  win_delay_load_hook.cc
  sha3.c
     Creating library C:\Users\vm-win10\Desktop\0xbitcoin-miner\build\Release\cpuminer.lib and object C:\Users\vm-win10\Desktop\0xbitcoin-miner\build\Release\cpuminer.exp
  Generating code
  Finished generating code
  cpuminer.vcxproj -> C:\Users\vm-win10\Desktop\0xbitcoin-miner\build\Release\\cpuminer.node
  cpuminer.vcxproj -> C:\Users\vm-win10\Desktop\0xbitcoin-miner\build\Release\cpuminer.pdb (Full PDB)
  compile cuda file on linux
  Failed to run ../gcc (The system cannot find the file specified.

  ).
C:\Users\vm-win10\Desktop\0xbitcoin-miner\build\gpuminer.targets(28,5): error MSB3721: The command "call nvcc "-ccbin" "..\gcc" "-Xcompiler" "-fpic" "-c" "-o" "Release\obj\gpuminer\cuda_sha256d.o" "..\cpp\cuda_sha2
56d.cu"" exited with code 255. [C:\Users\vm-win10\Desktop\0xbitcoin-miner\build\gpuminer.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\vm-win10\Desktop\0xbitcoin-miner
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

cannot fill in password

when creating account in the win app i just cannot add any password, the cursos doesnt move. using Win10.
all other commands work.

image

Is there currently a way to import private key for an account?

I ended up in a state with the miner (on windows) where my account and web3 provider were both "undefined" - so I deleted the vaultdata and created a new account. Since there was eth in the older account, I'm wondering if it can be imported into the miner again, so that I can continue mining into that account.

hello

is it allowed to use your miner for my own token with editing the codes ! thanks

Solo mine error

txCount 0
estimatedGasCost 109946
txData 0x1801fbe50520bb3b4eeae4b0b33bcf22fc5d9ad05dd4f873944561589bd4be314dfa872500004ba522d85fcbe68a8669912b95edbc2f57fbc74975bec612377befaa0b5a
addressFrom 0x3C7C1E69bFf810b91964532f983a3F08991fF643
addressTo 0x74960BcAC083ed732215229811C8B8a353C7e4BA
(node:2516) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'startsWith' of undefined
(node:2516) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Account null

Hi, just installed on macos, created a new account, and running account list returns only a null

*$ node index.js
Welcome to 0xBitcoin Miner!
Version:  1.2.5


Type a command to get started.  Type "help" for a list of commands.


prompt: command:  account list
Please provide the password to unlock account data.
prompt: Password must be at least 8 characters:
Ethereum accounts list:


--------------------
Selected account:
null


prompt: command:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.