diff options
| author | Adam Soltys <[email protected]> | 2020-10-12 00:39:45 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-10-12 00:39:45 -0700 |
| commit | a90d6cc97470696ade30f237b050b8b329858a17 (patch) | |
| tree | d2b0144a6076d799aa779a731f61e7c9c864f6a7 /routes/bitcoin | |
| parent | d7e5d530bd37f611beb1884c0587593fb9fb5880 (diff) | |
| download | coinos-server-a90d6cc97470696ade30f237b050b8b329858a17.tar.gz coinos-server-a90d6cc97470696ade30f237b050b8b329858a17.zip | |
javascript address generation
Diffstat (limited to 'routes/bitcoin')
| -rw-r--r-- | routes/bitcoin/receive.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/routes/bitcoin/receive.js b/routes/bitcoin/receive.js index 12eb760e..e0e3828b 100644 --- a/routes/bitcoin/receive.js +++ b/routes/bitcoin/receive.js @@ -77,11 +77,6 @@ zmqRawTx.on("message", async (topic, message, sequence) => { if (config.bitcoin.walletpass) await bc.walletPassphrase(config.bitcoin.walletpass, 300); - user.address = await bc.getNewAddress("", "bech32"); - await user.save(); - - addresses[user.address] = user.username; - let totalOutputs = tx.outs.reduce((a, b) => a + b.value, 0); let totalInputs = 0; for (let i = 0; i < tx.ins.length; i++) { |
