diff options
| author | Adam Soltys <[email protected]> | 2021-09-23 23:35:32 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-09-23 23:35:32 -0700 |
| commit | d87b3d5bce1add35eaf513b160ffc20f440168af (patch) | |
| tree | edd17c0b660e5e0ad216fe9378d6fc075fb111ed /routes/liquid/receive.js | |
| parent | 6fe6c1b9d715e7501ada4505af46062714a3d055 (diff) | |
| download | coinos-server-d87b3d5bce1add35eaf513b160ffc20f440168af.tar.gz coinos-server-d87b3d5bce1add35eaf513b160ffc20f440168af.zip | |
use liquidjs-lib with dynafed block parsing
Diffstat (limited to 'routes/liquid/receive.js')
| -rw-r--r-- | routes/liquid/receive.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/liquid/receive.js b/routes/liquid/receive.js index bc4293d3..5d41c269 100644 --- a/routes/liquid/receive.js +++ b/routes/liquid/receive.js @@ -4,7 +4,7 @@ const zmq = require("zeromq/v5-compat"); const { Op } = require("sequelize"); const { fromBase58 } = require("bip32"); const bitcoin = require("bitcoinjs-lib"); -const { Block, networks } = require("@asoltys/liquidjs-lib"); +const { Block, networks } = require("liquidjs-lib"); const network = networks[ @@ -197,7 +197,7 @@ zmqRawBlock.on("message", async (topic, message, sequence) => { let hash, json; - hash = await lq.getBlockHash(block.height); + hash = await lq.getBlockHash(block.blockHeight); json = await lq.getBlock(hash, 2); json.tx.map(async (tx) => { |
