FIX: update to work with latest bitcoind
This commit is contained in:
parent
78478c7f32
commit
e307f65e45
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "groundcontrol",
|
||||
"version": "2.2.0",
|
||||
"version": "2.3.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "groundcontrol",
|
||||
"version": "2.2.0",
|
||||
"version": "2.3.0",
|
||||
"description": "GroundControl push server API",
|
||||
"devDependencies": {
|
||||
"@types/node": "18.7.16",
|
||||
|
||||
@ -62,6 +62,9 @@ const ADDRESS_IGNORE_LIST = [
|
||||
"bc1qujepl0k5n0ga2e86yskvxa6auehpf6dlf84dx0",
|
||||
"bc1qg9lgqyukp2rup5x4frrz7hhw7988k5q26luakm",
|
||||
"3JSdUu1ivm3rqMvuCTAdAj6Dc2hdVhHiEe",
|
||||
"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
|
||||
"bc1qr35hws365juz5rtlsjtvmulu97957kqvr3zpw3",
|
||||
"bc1qzlcvh2k3xs2jyzvya7xmx8l2ylpt259txy7wnd",
|
||||
];
|
||||
|
||||
let connection: DataSource;
|
||||
|
||||
@ -41,8 +41,8 @@ async function processBlock(blockNum, sendQueueRepository: Repository<SendQueue>
|
||||
txids.push(tx.txid);
|
||||
if (tx.vout) {
|
||||
for (const output of tx.vout) {
|
||||
if (output.scriptPubKey && output.scriptPubKey.addresses) {
|
||||
for (const address of output.scriptPubKey.addresses) {
|
||||
if (output.scriptPubKey && (output.scriptPubKey.addresses || output.scriptPubKey.address)) {
|
||||
for (const address of output.scriptPubKey?.addresses ?? (output.scriptPubKey?.address ? [output.scriptPubKey?.address] : [])) {
|
||||
addresses.push(address);
|
||||
const payload: components["schemas"]["PushNotificationOnchainAddressGotPaid"] = {
|
||||
address,
|
||||
|
||||
@ -50,8 +50,8 @@ async function processMempool() {
|
||||
for (const response of responses) {
|
||||
if (response.result && response.result.vout) {
|
||||
for (const output of response.result.vout) {
|
||||
if (output.scriptPubKey && output.scriptPubKey.addresses) {
|
||||
for (const address of output.scriptPubKey.addresses) {
|
||||
if (output.scriptPubKey && (output.scriptPubKey.addresses || output.scriptPubKey.address)) {
|
||||
for (const address of output.scriptPubKey?.addresses ?? (output.scriptPubKey?.address ? [output.scriptPubKey?.address] : []) ) {
|
||||
addresses.push(address);
|
||||
processedTxids[response.result.txid] = true;
|
||||
const payload: components["schemas"]["PushNotificationOnchainAddressGotUnconfirmedTransaction"] = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user