Eligioo / nimiq-pool-webminer

MIT License
8 stars 6 forks source link

NOT WORKED! #2

Open asedali opened 4 years ago

asedali commented 4 years ago

This script is not worked for me. Console log:

Completed downloading Nimiq client from CDN. worker-wasm.js:1 trying binaryen method: native-wasm printErr @ worker-wasm.js:1 worker-wasm.js:1 asynchronously preparing wasm printErr @ worker-wasm.js:1 worker-wasm.js:1 binaryen method succeeded. printErr @ worker-wasm.js:1 Nimiq.js:183 Nimiq engine loaded. (index):34 Nimiq loaded. Connecting and establishing consensus. worker-wasm.js:1 trying binaryen method: native-wasm printErr @ worker-wasm.js:1 worker-wasm.js:1 asynchronously preparing wasm printErr @ worker-wasm.js:1 worker-wasm.js:1 binaryen method succeeded. printErr @ worker-wasm.js:1 worker-wasm.js:1 trying binaryen method: native-wasm printErr @ worker-wasm.js:1 worker-wasm.js:1 asynchronously preparing wasm printErr @ worker-wasm.js:1 worker-wasm.js:1 binaryen method succeeded. printErr @ worker-wasm.js:1 worker-wasm.js:1 trying binaryen method: native-wasm printErr @ worker-wasm.js:1 worker-wasm.js:1 asynchronously preparing wasm printErr @ worker-wasm.js:1 worker-wasm.js:1 binaryen method succeeded. printErr @ worker-wasm.js:1 worker-wasm.js:1 trying binaryen method: native-wasm printErr @ worker-wasm.js:1 worker-wasm.js:1 asynchronously preparing wasm printErr @ worker-wasm.js:1 worker-wasm.js:1 binaryen method succeeded. printErr @ worker-wasm.js:1 LogNative.js:48 [I 09:22:42] PeerAddressSeeder: Got 7 seed peers from https://nimiq.community/seeds.txt (signed) DevTools failed to parse SourceMap: http://localhost:8080/headless-content.js.map (index):69 Now connected to 1 peers. (index):69 Now connected to 2 peers. (index):69 Now connected to 3 peers. (index):69 Now connected to 4 peers. (index):69 Now connected to 5 peers. (index):69 Now connected to 6 peers. (index):69 Now connected to 7 peers. LogNative.js:44 [E 09:24:14] DataChannel: Message does not start with next tag 0 (got 1 instead), but buffer is null msg @ LogNative.js:44 msg @ Log.js:59 e @ Log.js:92 _onMessage @ DataChannel.js:164 _onMessage @ WebRtcDataChannel.js:30 WebRtcDataChannel._channel.onmessage @ WebRtcDataChannel.js:12 LogNative.js:44 [E 09:25:13] DataChannel: Message does not start with next tag 0 (got 1 instead), but buffer is null msg @ LogNative.js:44 msg @ Log.js:59 e @ Log.js:92 _onMessage @ DataChannel.js:164 _onMessage @ WebRtcDataChannel.js:30 WebRtcDataChannel._channel.onmessage @ WebRtcDataChannel.js:12 LogNative.js:44 [E 09:27:28] DataChannel: Message does not start with next tag 0 (got 1 instead), but buffer is null msg @ LogNative.js:44 msg @ Log.js:59 e @ Log.js:92 _onMessage @ DataChannel.js:164 _onMessage @ WebRtcDataChannel.js:30 WebRtcDataChannel._channel.onmessage @ WebRtcDataChannel.js:12 LogNative.js:44 [E 09:27:49] DataChannel: Message does not start with next tag 0 (got 1 instead), but buffer is null msg @ LogNative.js:44 msg @ Log.js:59 e @ Log.js:92 _onMessage @ DataChannel.js:164 _onMessage @ WebRtcDataChannel.js:30 WebRtcDataChannel._channel.onmessage @ WebRtcDataChannel.js:12

Eligioo commented 4 years ago

This script is based on Light clients which isn't feasible anymore to run in browsers. Is your plan run it in browsers?

asedali commented 4 years ago

How do I use in the browser? Can I mining Nimiq in browser? Where does your script use other than the browser?

Eligioo commented 4 years ago

Mining in the browser is not worth it. Try https://nimiqdesktop.com/

asedali commented 4 years ago

How does the miner.nimiq.com work? Can embed similar it on the webpage?

Eligioo commented 4 years ago

Mining.nimiq.com is a fun demo for promotion and marketing to show off how easy it is to get started with Nimiq but besides that, it's not really worth for serious mining.