bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

bitcore-wallet-service not notifying of payment through messageBroker

Open taythebot opened this issue 5 years ago • 3 comments

I currently have bitcore-wallet-service running and am connected to the messageBroker at ws://localhost:3380/socket.io. I see new block notifications coming in but none for receiving address transaction notifications. Is there a specific room to join or configuration I have to add?

I see bitcore-wallet-service querying the transaction in bitcore logs but I don't receive any kind of notification.

I currently receive a new block notification with the block hash when the transaction is confirmed. To my understanding I'm suppose to receive a transaction alert for when the transaction arrives.

taythebot avatar Oct 14 '20 06:10 taythebot

I gave up and made my own bitcore monitor. But I did look through the source code and it seems the function to notify payments for BTC is empty?

Function: https://github.com/bitpay/bitcore/blob/724defd8695990b5b4d89fe5ced60893501aa060/packages/bitcore-wallet-service/src/lib/chain/btc/index.ts#L835

taythebot avatar Oct 16 '20 06:10 taythebot

@taythebot Did you ever find an actual solution to this? we have the same issue, i believe. no payment notifications coming. our initial thinking. socketApiKey is not a valid reason below;

{"message":"Error joining room Authentication failed BTC/testnet","level":"error"} {"message":"Error joining room Authentication failed BTC/mainnet","level":"error"}

walletsSocket never connects and hence cannot get notifications messages. also, v8 is required by the services so trying to bypass it might affect other areas. I feel we need a specific key provided by bitcore node

smk-windsor avatar Jan 19 '21 22:01 smk-windsor

@taythebot managed to get a solution on a related thread

https://github.com/bitpay/bitcore/issues/2637#issuecomment-763176802

smk-windsor avatar Jan 19 '21 22:01 smk-windsor