From cea28e8acf4c1a1b2e17e13a6b9fa877cebfcca6 Mon Sep 17 00:00:00 2001 From: Greg-Griffith Date: Sun, 28 Apr 2019 01:18:38 +0900 Subject: [PATCH 1/4] fix regtest rpc port --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index e65ecfe..42e2b4b 100755 --- a/src/index.js +++ b/src/index.js @@ -35,8 +35,8 @@ function source(...args) { const networks = { mainnet: 19119, - regtest: 30001, - testnet: 30001 + testnet: 30001, + regtest: 40001 }; /** From e294247f09bff9234e0ed4ea9655e7916c9dee67 Mon Sep 17 00:00:00 2001 From: Greg-Griffith Date: Sun, 28 Apr 2019 01:32:00 +0900 Subject: [PATCH 2/4] remove methods not supported in eccoin --- src/methods.js | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/src/methods.js b/src/methods.js index 1d12b15..7e67436 100755 --- a/src/methods.js +++ b/src/methods.js @@ -12,17 +12,13 @@ import { map, set } from 'lodash'; export default { abandonTransaction: { version: '>=0.12.0' }, - abortRescan: { version: '>=0.15.0' }, addMultiSigAddress: { version: '>=0.1.0' }, addNode: { version: '>=0.8.0' }, - addWitnessAddress: { version: '>=0.13.0' }, backupWallet: { version: '>=0.3.12' }, - bumpFee: { version: '>=0.14.0' }, clearBanned: { version: '>=0.12.0' }, combineRawTransaction: { version: '>=0.15.0' }, createMultiSig: { version: '>=0.1.0' }, createRawTransaction: { version: '>=0.7.0' }, - createWitnessAddress: { version: '=0.13.0' }, decodeRawTransaction: { version: '>=0.7.0' }, decodeScript: { version: '>=0.9.0' }, disconnectNode: { version: '>=0.12.0' }, @@ -43,18 +39,11 @@ export default { version: '>=0.1.0' }, estimateFee: { version: '>=0.10.0' }, - estimatePriority: { version: '>=0.10.0 <0.15.0' }, estimateSmartFee: { version: '>=0.12.0' }, - estimateSmartPriority: { version: '>=0.12.0 <0.15.0' }, fundRawTransaction: { version: '>=0.12.0' }, generate: { version: '>=0.11.0' }, generateToAddress: { version: '>=0.13.0' }, - getANSAddress: { version: '>=0.0.1' }, - getANSRecord: { version: '>=0.0.1' }, - getAccount: { version: '>=0.1.0' }, - getAccountAddress: { version: '>=0.3.18' }, getAddedNodeInfo: { version: '>=0.8.0' }, - getAddressesByAccount: { version: '>=0.1.0' }, getBalance: { version: '>=0.3.18' }, getBestBlockHash: { version: '>=0.9.0' }, getBlock: { version: '>=0.6.0' }, @@ -64,17 +53,11 @@ export default { getBlockTemplate: { version: '>=0.7.0' }, getBlockchainInfo: { version: '>=0.9.2' }, getChainTips: { version: '>=0.10.0' }, - getChainTxStats: { version: '>=0.15.0' }, getConnectionCount: { version: '>=0.1.0' }, getDifficulty: { version: '>=0.1.0' }, getGenerate: { version: '<0.13.0' }, getGeneratepos: { version: '<0.13.0' }, - getHashesPerSec: { version: '<0.10.0' }, getInfo: { version: '>=0.1.0' }, - getMemoryInfo: { version: '>=0.14.0' }, - getMempoolAncestors: { version: '>=0.13.0' }, - getMempoolDescendants: { version: '>=0.13.0' }, - getMempoolEntry: { version: '>=0.13.0' }, getMempoolInfo: { version: '>=0.10.0' }, getMiningInfo: { version: '>=0.6.0' }, getNetTotals: { version: '>=0.1.0' }, @@ -85,7 +68,6 @@ export default { getRawChangeAddress: { version: '>=0.9.0' }, getRawMempool: { version: '>=0.7.0' }, getRawTransaction: { version: '>=0.7.0' }, - getReceivedByAccount: { version: '>=0.1.0' }, getReceivedByAddress: { version: '>=0.1.0' }, getTransaction: { version: '>=0.1.0' }, getTxOut: { version: '>=0.7.0' }, @@ -93,18 +75,8 @@ export default { getTxOutSetInfo: { version: '>=0.7.0' }, getUnconfirmedBalance: { version: '>=0.9.0' }, getWalletInfo: { version: '>=0.9.2' }, - getWork: { version: '<0.10.0' }, help: { version: '>=0.1.0' }, importAddress: { version: '>=0.10.0' }, - importMulti: { - obfuscate: { - request: { - default: params => set(params, '[0]', map(params[0], request => set(request, 'keys', map(request.keys, () => '******')))), - named: params => set(params, 'requests', map(params.requests, request => set(request, 'keys', map(request.keys, () => '******')))) - } - }, - version: '>=0.14.0' - }, importPrivKey: { obfuscate: { request: { @@ -114,34 +86,23 @@ export default { }, version: '>=0.6.0' }, - importPrunedFunds: { version: '>=0.13.0' }, importPubKey: { version: '>=0.12.0' }, importWallet: { version: '>=0.9.0' }, keypoolRefill: { version: '>=0.1.0' }, - listAccounts: { version: '>=0.1.0' }, listAddressGroupings: { version: '>=0.7.0' }, listAddresses: { version: '>=0.1.0' }, listBanned: { version: '>=0.12.0' }, listLockUnspent: { version: '>=0.8.0' }, - listReceivedByAccount: { version: '>=0.1.0' }, listReceivedByAddress: { version: '>=0.1.0' }, listSinceBlock: { version: '>=0.5.0' }, listTransactions: { version: '>=0.3.18' }, listUnspent: { version: '>=0.7.0' }, - listWallets: { version: '>=0.15.0' }, lockUnspent: { version: '>=0.8.0' }, - move: { version: '>=0.3.18' }, ping: { version: '>=0.9.0' }, - preciousBlock: { version: '>=0.14.0' }, prioritiseTransaction: { version: '>=0.10.0' }, - pruneBlockchain: { version: '>=0.14.0' }, - reloadConfig: { version: '>=0.0.1' }, - removePrunedFunds: { version: '>=0.13.0' }, - sendFrom: { version: '>=0.3.18' }, sendMany: { version: '>=0.3.21' }, sendRawTransaction: { version: '>=0.7.0' }, sendToAddress: { version: '>=0.1.0' }, - setAccount: { version: '>=0.1.0' }, setBan: { version: '>=0.12.0' }, setGenerate: { version: '<0.13.0' }, setGeneratepos: { version: '<0.13.0' }, From 10522e4368dee4f40a77c299155c6ac52fa20123 Mon Sep 17 00:00:00 2001 From: Dylan Aird Date: Tue, 8 Oct 2019 23:04:59 +1100 Subject: [PATCH 3/4] add all routing methods in --- src/methods.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/methods.js b/src/methods.js index 1d12b15..c0427d0 100755 --- a/src/methods.js +++ b/src/methods.js @@ -47,9 +47,14 @@ export default { estimateSmartFee: { version: '>=0.12.0' }, estimateSmartPriority: { version: '>=0.12.0 <0.15.0' }, fundRawTransaction: { version: '>=0.12.0' }, + findRoute: { version: '>=0.1.0' }, generate: { version: '>=0.11.0' }, generateToAddress: { version: '>=0.13.0' }, getANSAddress: { version: '>=0.0.1' }, + getaodvtable: { version: '>=0.0.1' }, + getaodvkeyentry: { version: '>=0.0.1' }, + getaodvidentry: { version: '>=0.0.1' }, + getroutingpubkey: { version: '>=0.0.1' }, getANSRecord: { version: '>=0.0.1' }, getAccount: { version: '>=0.1.0' }, getAccountAddress: { version: '>=0.3.18' }, @@ -95,6 +100,7 @@ export default { getWalletInfo: { version: '>=0.9.2' }, getWork: { version: '<0.10.0' }, help: { version: '>=0.1.0' }, + haveroute: { version: '>=0.1.0' }, importAddress: { version: '>=0.10.0' }, importMulti: { obfuscate: { @@ -137,8 +143,10 @@ export default { pruneBlockchain: { version: '>=0.14.0' }, reloadConfig: { version: '>=0.0.1' }, removePrunedFunds: { version: '>=0.13.0' }, + readlastpacket: { version: '>=0.1.0' }, sendFrom: { version: '>=0.3.18' }, sendMany: { version: '>=0.3.21' }, + sendpacket: { version: '>=0.1.0' }, sendRawTransaction: { version: '>=0.7.0' }, sendToAddress: { version: '>=0.1.0' }, setAccount: { version: '>=0.1.0' }, From 9f9bd97afff0d9cf773d9c431af38a529a0cf754 Mon Sep 17 00:00:00 2001 From: Dylan Aird Date: Tue, 8 Oct 2019 23:10:44 +1100 Subject: [PATCH 4/4] add missing eccoin methods --- src/methods.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/methods.js b/src/methods.js index c0427d0..7d1d1ee 100755 --- a/src/methods.js +++ b/src/methods.js @@ -101,6 +101,7 @@ export default { getWork: { version: '<0.10.0' }, help: { version: '>=0.1.0' }, haveroute: { version: '>=0.1.0' }, + invalidateBlock: { version: '>=0.1.0' }, importAddress: { version: '>=0.10.0' }, importMulti: { obfuscate: { @@ -144,6 +145,7 @@ export default { reloadConfig: { version: '>=0.0.1' }, removePrunedFunds: { version: '>=0.13.0' }, readlastpacket: { version: '>=0.1.0' }, + reconsiderBlock: { version: '>=0.1.0' }, sendFrom: { version: '>=0.3.18' }, sendMany: { version: '>=0.3.21' }, sendpacket: { version: '>=0.1.0' },