Bitcoin Forum
June 22, 2024, 01:53:13 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Project Development / Re: Cashier-BTC: Process Bitcoin payments on your end, paying zero commissions on: May 23, 2018, 04:49:40 PM
OK another stupid question, because I'm not sure I totally get what's in the README...

After creating a seller, if I remove his WIF and replace the pubkey with a cold storage address, it will never be overwritten?

Happy to help!

Absolutely, once the database record for seller exists - it is never overwritten.



Cool! Thanks a lot
2  Bitcoin / Project Development / Re: Cashier-BTC: Process Bitcoin payments on your end, paying zero commissions on: May 23, 2018, 01:41:06 PM
OK another stupid question, because I'm not sure I totally get what's in the README...

After creating a seller, if I remove his WIF and replace the pubkey with a cold storage address, it will never be overwritten?
3  Bitcoin / Project Development / Re: Cashier-BTC: Process Bitcoin payments on your end, paying zero commissions on: May 23, 2018, 11:34:22 AM


    • I don't know if it's a consequence of the items above, but I created new payment requests which were paid and arrived in the sub-addresses (I can see them in bitcoin-cli listaddressgroupings) but they are not transferred to the seller account, no trace of them in cashier-btc-out.log

    Don't hesitate to ask me for more info Smiley


    The third question I didn't quite understand.
    Probably the payment requests are old enough (>24h) to be ignored by worker.
    You can always check out whats wrong with the payment request right in the database.


    Thank you for your reply! I'll look into the first two items right now.

    About the third one, I have 2 payments of 0.0004 which are received (this morning) :
    [/list]
    Code:
      [
        [
          "XXY",
          0.00040000,
          "XXY"
        ]
      ],
      [
        [
          "XXX",
          0.00040000,
          "XXX"
        ]
      ]

    and confirmed (more than 20 confirmations now) but they are not getting transferred to the seller account.

    In the database, the paid_on, processed and so on fields are missing. I also don't see those transactions in the worker.js logs.

    After looking closer, I found this:
    Code:
    (node:4415) UnhandledPromiseRejectionWarning: Error: {"result":null,"error":{"code":-4,"message":"Address not found in wallet"},"id":"4faa6833-856e-48b0-afa9-42fe75e8675a"}

        at IncomingMessage.<anonymous> (/home/cashier/Cashier-BTC/node_modules/jayson/lib/client/http.js:74:21)
        at emitNone (events.js:111:20)
        at IncomingMessage.emit (events.js:208:7)
        at endReadableNT (_stream_readable.js:1064:12)
        at _combinedTickCallback (internal/process/next_tick.js:138:11)
        at process._tickCallback (internal/process/next_tick.js:180:9)
    (node:4415) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

    I guess I have some address in the database which wasn't created in the bitcoind itself?

    EDIT : found the issue, I had some left over data from "npm test" in my database Smiley
    4  Bitcoin / Project Development / Re: Cashier-BTC: Process Bitcoin payments on your end, paying zero commissions on: May 23, 2018, 09:17:05 AM
    Hi,

    First of all, thank you for your excellent work. I was looking for a full-node based self-hosted payment solution for several of my companies and it fits perfectly.

    I'm testing it since yesterday but I'm running into a few minor issues :

    • I made small payments to test (0.0001 BTC) which seem to be equal to the fee to transfer to the merchant account, so I'm getting stuck in a loop of
    Code:
    worker2.js address: XXX expect: 0.0001 confirmed: 0.0001 unconfirmed: 0.0001
    worker2.js transferring 0.0001 BTC (minus fee) from XXX to seller XXX ( XXX )
    worker2.js broadcasting XXX

    • Is there a way to cleanup old payment requests ? I have a few of those looping in the logs of worker.js
    Code:
    worker.js address: XXX expect: 0.001 confirmed: 0 unconfirmed: 0
    worker.js address: XXY expect: 0.001 confirmed: 0 unconfirmed: 0
    worker.js address: XXZ expect: 0.001 confirmed: 0 unconfirmed: 0
    worker.js address: XXW expect: 0.001 confirmed: 0 unconfirmed: 0
    • I don't know if it's a consequence of the items above, but I created new payment requests which were paid and arrived in the sub-addresses (I can see them in bitcoin-cli listaddressgroupings) but they are not transferred to the seller account, no trace of them in cashier-btc-out.log

    Don't hesitate to ask me for more info Smiley
    Pages: [1]
    Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!