Closed cyizard closed 2 years ago
at Object. (/opt/dvandal/pool/node_modules/bitcoinjs-lib/src/crypto.js:49:37)
delete this part in /node_modules/bitcoinjs-lib/src
const TAGS = [ 'BIP0340/challenge', 'BIP0340/aux', 'BIP0340/nonce', 'TapLeaf', 'TapBranch', 'TapSighash', 'TapTweak', 'KeyAgg list', 'KeyAgg coefficient', ]; /* An object mapping tags to their tagged hash prefix of [SHA256(tag) | SHA256(tag)] / const TAGGED_HASH_PREFIXES = Object.fromEntries( TAGS.map(tag => { const tagHash = sha256(Buffer.from(tag)); return [tag, Buffer.concat([tagHash, tagHash])]; }), ); function taggedHash(prefix, data) { return sha256(Buffer.concat([TAGGED_HASH_PREFIXES[prefix], data])); } exports.taggedHash = taggedHash;
looks like a node version that doesn't support enumerable.entries.
i get the following when running node init.js:
pool@cyizard-pool:/opt/dvandal/pool$ node init.js 2022-02-25 15:27:42 [master] Starting Cryptonote Node.JS pool version v2.0.0 2022-02-25 15:27:43 [master] Pool spawned on 2 thread(s) 2022-02-25 15:27:44 [master] Starting Cryptonote Node.JS pool version v2.0.0 2022-02-25 15:27:44 [master] Starting Cryptonote Node.JS pool version v2.0.0 2022-02-25 15:27:44 [master] Starting Cryptonote Node.JS pool version v2.0.0 2022-02-25 15:27:44 [master] Starting Cryptonote Node.JS pool version v2.0.0 2022-02-25 15:27:44 [master] Starting Cryptonote Node.JS pool version v2.0.0 2022-02-25 15:27:45 [master] Starting Cryptonote Node.JS pool version v2.0.0 2022-02-25 15:27:45 [master] Starting Cryptonote Node.JS pool version v2.0.0 2022-02-25 15:27:45 [chartsDataCollector] Started
TypeError: Object.fromEntries is not a function at Object. (/opt/dvandal/pool/node_modules/bitcoinjs-lib/src/crypto.js:49:37)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/opt/dvandal/pool/node_modules/bitcoinjs-lib/src/payments/p2pkh.js:4:17)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
2022-02-25 15:27:50 [master] Daemon died, spawning replacement... 2022-02-25 15:27:50 [master] Starting Cryptonote Node.JS pool version v2.0.0
TypeError: Object.fromEntries is not a function at Object. (/opt/dvandal/pool/node_modules/bitcoinjs-lib/src/crypto.js:49:37)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/opt/dvandal/pool/node_modules/bitcoinjs-lib/src/payments/p2pkh.js:4:17)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
2022-02-25 15:27:52 [master] Daemon died, spawning replacement... 2022-02-25 15:27:52 [master] Starting Cryptonote Node.JS pool version v2.0.0
TypeError: Object.fromEntries is not a function at Object. (/opt/dvandal/pool/node_modules/bitcoinjs-lib/src/crypto.js:49:37)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/opt/dvandal/pool/node_modules/bitcoinjs-lib/src/payments/p2pkh.js:4:17)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
2022-02-25 15:27:53 [master] Daemon died, spawning replacement... 2022-02-25 15:27:54 [master] Starting Cryptonote Node.JS pool version v2.0.0
TypeError: Object.fromEntries is not a function at Object. (/opt/dvandal/pool/node_modules/bitcoinjs-lib/src/crypto.js:49:37)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/opt/dvandal/pool/node_modules/bitcoinjs-lib/src/payments/p2pkh.js:4:17)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/opt/dvandal/pool/node_modules/bitcoinjs-lib/src/payments/index.js:25:17)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/opt/dvandal/pool/node_modules/bitcoinjs-lib/src/address.js:5:18)
any ideas? thanks