kimitzu / kimitzu-client

A web client that interfaces with Kimitzu-Go and Kimitzu-Services
Mozilla Public License 2.0
4 stars 2 forks source link

Blockchain/buyer node report transaction completed, but seller node does not recognize payment #81

Open alahj opened 4 years ago

alahj commented 4 years ago

As "Complete Therapeutic Massage" ( PeerID Qmdgh8DfRQVNhhVvqE5zYQZU3ArgwpvefvHAFs4HRmbrVU) , I purchased a $10 in BTC for a "Sloth Massage" / "Test listings" from kimitzu_massage (PeerID: QmaaiLRgS9PxHV8re3Z2rhdKVzCxkSEQ9XVdpdK9rjkaiF). The sale appeared on both Peers. However, although the buyer ("Complete Therapeutic Massage") wallet says that the payment was sent (and Blockchain.com confirms that the transaction is complete), the payment does not appear in the seller's wallet. (Note, there is an older existing transaction, from when I transferred BTC into the seller's wallet directly from electrum).

Screen Shot 2020-01-23 at 3 49 34 AM Screen Shot 2020-01-23 at 3 56 42 AM screencapture-blockchain-btc-tx-2aa188df2675850a80f9b2d9d99ccdf0c65767a639e377d27ca4038a2c1b020f-2020-01-23-03_57_43 Screen Shot 2020-01-23 at 3 59 39 AM Screen Shot 2020-01-23 at 4 01 21 AM

24thsaint commented 4 years ago

Hmm this looks like Openbazaar failed to hear the transaction.

Do you have access to the buyer node?

We'd need to send a POST request to http://localhost:8100/wallet/resyncblockchain to rescan the blockchain.

alahj commented 4 years ago

Yes, I have access to the buyer node. Here's what I see on the buyer node when I go to the URL:

Screen Shot 2020-01-23 at 4 36 11 AM

24thsaint commented 4 years ago

^Errata: This command should be ran on the seller node.

On the localhost page sir, do:

Right click -> Inspect -> Go to console.

Then the command: await fetch('http://localhost:8100/wallet/resyncblockchain', {method: 'POST'})

For reference, you'll end up with something like: image

Then check the wallet page. :))

alahj commented 4 years ago

Trying...

alahj commented 4 years ago

Getting a Content Security Warning. Screen Shot 2020-01-23 at 4 58 29 AM

24thsaint commented 4 years ago

Ohmy. Then we will need a REST client.

For example this one: https://install.advancedrestclient.com/install

Then, execute a POST request with URL: http://localhost:8100/wallet/resyncblockchain

Image for reference: image

alahj commented 4 years ago

I tried a curl POST request:

curl --request POST http://localhost:8100/wallet/resyncblockchain

Returned this: {}

alahj commented 4 years ago

Screen Shot 2020-01-23 at 5 24 16 AM

alahj commented 4 years ago

Wallet still does not display transaction.

24thsaint commented 4 years ago

hmmm interesting... would you like to send over the .kimitzu-ob/datastore folder sir for further investigation?

alahj commented 4 years ago

Sure.

24thsaint commented 4 years ago

We just need this folder, sir.

Screenshot from 2020-01-23 21-52-38

24thsaint commented 4 years ago

Confirmed, transaction type is offline order which is still currently not supported as it has a different transaction flow as compared to an online order.

Reprioritizing to implement this in the next minor release.


Dev Note