This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COLLATERAL_KEY=cRnaL9PdSnwmSCVdwHRXH362eSjxyHc6ePvkFsU12wRgK6jahSTk | |
COLLATERAL_ADDRESS=yMF5Mfrdsx4u7gHPmH8v5UmQBNJ6dygMcX | |
FAUCET_PRIVATE_KEY=cRhCaxzGmkJHDeQwwn71cLfmq1ssM8yNaCy3Dzx6xnu8RLrLCMvy | |
FAUCET_ADDRESS=yTFraC61Q2xrhywxp2ePZt4egtF8xSKm4M | |
MINING_INTERVAL_IN_SECONDS=1 | |
NODE_COUNT=3 | |
DAPI_REPO_PATH=/Users/anton/dash/dapi | |
DRIVE_REPO_PATH=/Users/samuelw/Documents/src/js-drive | |
TENDERDASH_IMAGE=local-tenderdash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const port = 5050 | |
const Dash = require('dash'); | |
const cors = require('cors'); | |
const app = express(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST http://54.244.141.192:3000/ 502 (Bad Gateway) | |
(anonymous) @ VM15232:1 | |
dispatchXhrRequest @ xhr.js?b50d:187 | |
xhrAdapter @ xhr.js?b50d:13 | |
dispatchRequest @ dispatchRequest.js?5270:53 | |
request @ Axios.js?0a06:108 | |
Axios.<computed> @ Axios.js?0a06:140 | |
wrap @ bind.js?1d2b:9 | |
requestJsonRpc @ requestJsonRpc.js?3703:32 | |
request @ JsonRpcTransport.js?66de:67 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fri Dec 03 2021 20:26:35 GMT+0000 (Coordinated Universal Time) sendTx Error InvalidRequestError: Transaction already in chain: Transaction already in block chain | |
at GrpcTransport.createGrpcTransportError (/root/dash-dapp-autofaucet/node_modules/@dashevo/dapi-client/lib/transport/GrpcTransport/createGrpcTransportError.js:96:12) | |
at GrpcTransport.request (/root/dash-dapp-autofaucet/node_modules/@dashevo/dapi-client/lib/transport/GrpcTransport/GrpcTransport.js:86:34) | |
at runMicrotasks (<anonymous>) | |
at processTicksAndRejections (internal/process/task_queues.js:97:5) { | |
code: 6, | |
data: {}, | |
dapiAddress: DAPIAddress { | |
host: '18.237.147.160', | |
httpPort: 3000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable max-len */ | |
/* eslint-disable no-underscore-dangle */ | |
/* eslint-disable no-bitwise */ | |
const CryptoJS = require("crypto-js"); | |
const secp256k1 = require("secp256k1-native"); | |
const dashcore = require("@dashevo/dashcore-lib"); | |
const ecdhSharedKey = (senderPrivateKey, receiverPublicKey) => { | |
const ctx = secp256k1.secp256k1_context_create( | |
secp256k1.secp256k1_context_SIGN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Dash = require("dash"); | |
const dashpaycrypto = require("dashpay-crypto"); | |
// const Base58 = require('../lib/encoding/base58'); | |
// changing mnemonic requires adjusting or removing skipSynchronizationBeforeHeight | |
// const senderMnemonic = 'catalog world quit margin supreme pony vacuum park inch soul daughter manage'; // B-DashpayJS | |
// const senderMnemonic = 'upper renew that grow pelican pave subway relief describe enforce suit hedgehog blossom dose swallow'; // iOS test vector | |
// const senderMnemonic = | |
// "differ need van hire walk globe busy drill name neutral below increase"; // C-DashpayJS THIS MNEMONIC HAS ISSUES REGISTERING A USERNAME IN ANDROID WALLET | |
const senderMnemonic = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: Merkle root from the diff doesn't match calculated merkle root after diff is applied | |
at SimplifiedMNList.applyDiff (/root/dash-dapp-autofaucet/node_modules/@dashevo/dashcore-lib/lib/deterministicmnlist/SimplifiedMNList.js:85:11) | |
at SimplifiedMasternodeListProvider.updateMasternodeList (/root/dash-dapp-autofaucet/node_modules/@dashevo/dapi-client/lib/SimplifiedMasternodeListProvider/SimplifiedMasternodeListProvider.js:59:29) | |
at runMicrotasks (<anonymous>) | |
at processTicksAndRejections (internal/process/task_queues.js:97:5) | |
at async SimplifiedMasternodeListProvider.getSimplifiedMNList (/root/dash-dapp-autofaucet/node_modules/@dashevo/dapi-client/lib/SimplifiedMasternodeListProvider/SimplifiedMasternodeListProvider.js:34:7) | |
at async SimplifiedMasternodeListDAPIAddressProvider.getLiveAddress (/root/dash-dapp-autofaucet/node_modules/@dashevo/dapi-client/lib/dapiAddressProvider/SimplifiedMasternodeListDAPIAddressProvider.js:21:17) | |
at async GrpcTransport.request (/root/dash-dapp-aut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm run test:browsers | |
> @dashevo/platform-test-suite@0.21.0 test:browsers | |
> karma start ./karma.conf.js --single-run | |
webpack was not included as a framework in karma configuration, setting this automatically... | |
Webpack bundling... | |
asset commons.js 10.2 MiB [emitted] (name: commons) (id hint: commons) | |
asset runtime.js 8.2 KiB [emitted] (name: runtime) | |
asset index.4100595809.js 1.03 KiB [emitted] (name: index.4100595809) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"transactions":{"a42791d1c2f46c8736bb82d875ff16f7b654adc6e1e474364708765d916fac60":{"hash":"a42791d1c2f46c8736bb82d875ff16f7b654adc6e1e474364708765d916fac60","version":3,"inputs":[{"prevTxId":"ed00ce4c73485f6d0a82e5f3a670a7591579c2e2c35bc793da3f71b6e2d25b90","outputIndex":1,"sequenceNumber":4294967295,"script":"483045022100ab94482544501f5a10c0b7a24c9fd2ae1133faa24b77b41f5674a2e54d317de5022008f37cc933b7bff4136be4015ce089ecf8da2a71baa7f57d1b48aca900438b75012103dd324e517bcc251052069d19d3d71fd6678ac38e786b6b3b6b7adf0112cd91d8","scriptString":"72 0x3045022100ab94482544501f5a10c0b7a24c9fd2ae1133faa24b77b41f5674a2e54d317de5022008f37cc933b7bff4136be4015ce089ecf8da2a71baa7f57d1b48aca900438b7501 33 0x03dd324e517bcc251052069d19d3d71fd6678ac38e786b6b3b6b7adf0112cd91d8"}],"outputs":[{"satoshis":10000,"script":"6a14b880bed0ec5e0912f5569883f4e40259a9eb410a"},{"satoshis":770289000,"script":"76a9146b69b0c4e117af7d588f2b01f55ac74a514410a488ac"}],"nLockTime":0},"ed00ce4c73485f6d0a82e5f3a670a7591579c2e2c35bc793da3f71b6e2d25b90" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Dash = require("dash"); | |
const { NodeForage } = require("nodeforage"); | |
const nodeforage = new NodeForage({ name: "walletnodeforage2" }); | |
const clientOpts = { | |
network: "testnet", | |
apps: { | |
}, | |
wallet: { |