Bible Pay

Read 22424 times

Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #60 on: February 16, 2025, 08:59:19 PM »
ive been trading with myself using 2 machines and im not able to replicate what happened previously



  • talisman
  • Jr. Member

    • 64


    • 17
    • March 26, 2018, 07:42:24 AM
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #61 on: February 17, 2025, 07:19:30 AM »
Yeah its weird because I havent seen that happen to any of my 3 installs (it may be a race condition).
Can you tell me exactly what is the label on each of them?  "TRADING-ASSET-DOGE"?  Yeah, they were both mined as DGZZ DOGE asset addresses so they are valid.  Technically the wallet should work fine with two of those.  I will add code very soon to show the address in 'exec getassetbalance' that goes along with the amount.

Hi Rob,

Both addresses have the same label:  "TRADING-ASSET-DOGE"

When I check my asset balance at the console, it reports only one of them though: B98GozkCagidcdFMY2zyKf7k3ioud2DgZz (it seems to hold the wrapped DOGE from my only transaction on the exchange)


  • Rob Andrews
  • Administrator

    • 4214


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #62 on: February 17, 2025, 11:14:59 AM »
ive been trading with myself using 2 machines and im not able to replicate what happened previously
Great on two machines, we will test this extensively before moving it to prod.
Ill also put a mutex on it when we are in there next time for anything.
In the mean time feel free to try to abuse it.

It also could have been during the transition from the fork to instantsend.  If you want, you can reindex your wallet and check and see if any orphaned tx's are released to your main balance.

(Unfortuantely dash took out the feature called -zapwallettxes=1 otherwise I would suggest that).

I think the main priority is to try to see if there is ever an error with these.

One other feature we could probably add, is for me to log the trading balance and the doge balance every time something is done in the tradinglog.  We have a tradinglog.dat file being appended now.



  • Rob Andrews
  • Administrator

    • 4214


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #63 on: February 17, 2025, 11:18:09 AM »
Hi Rob,

Both addresses have the same label:  "TRADING-ASSET-DOGE"

When I check my asset balance at the console, it reports only one of them though: B98GozkCagidcdFMY2zyKf7k3ioud2DgZz (it seems to hold the wrapped DOGE from my only transaction on the exchange)

Ok, so to get rid of the second one, just pick the one where the address is not equal to the official one in the RPC output, just edit it and make it something completely different like 'old-asset-doge' and then it wont be used by the wallet.

We will keep an eye on this behavior and see if it happens again.  Ill also think of ways that could cause this race condition.



  • Rob Andrews
  • Administrator

    • 4214


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #64 on: February 20, 2025, 03:18:44 PM »
So I assume, with lack of any more complaints that everything is working perfectly as far as trades with perfect matches.

Im going to move on to partial fills next.

Please keep an eye out for the next mandatory upgrade- most likely by the weekend.

If anyone can do any more testing, please do it so we can build on something that already works properly.



  • Budinga
  • Jr. Member

    • 38


    • 3
    • January 28, 2020, 02:21:29 AM
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #65 on: February 24, 2025, 08:06:25 AM »
Hi Rob,

I still keep getting public trading key is 1 when i try to sell some bbp,  and i have funded it a couple of times.

any ideas? wallet is unlocked, and i have waited a few blocks.


  • Rob Andrews
  • Administrator

    • 4214


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #66 on: February 24, 2025, 10:52:01 AM »
Hi Rob,

I still keep getting public trading key is 1 when i try to sell some bbp,  and i have funded it a couple of times.

any ideas? wallet is unlocked, and i have waited a few blocks.
Hi Bro Budinga,
Can you give me an example or a paste of what output you mean?
Im not sure what you mean.

Heres two things you can try:
1) exec getassetbalance trading
Verify balance is good (^ that command only works on the latest version of the wallet btw).

2) From coin control, find your 'TRADING-PUBLIC-KEY' and verify it has a positive balance.
You may have spent some from it, if so you can just re-send funds to it.
Then you can LOCK the funds with Coin Control to keep that from happening again.
The exchange can spend from it when an order is filled.


« Last Edit: February 24, 2025, 11:10:26 AM by Rob Andrews »


  • Budinga
  • Jr. Member

    • 38


    • 3
    • January 28, 2020, 02:21:29 AM
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #67 on: February 25, 2025, 01:45:32 AM »
Hi Bro Budinga,
Can you give me an example or a paste of what output you mean?
Im not sure what you mean.

Heres two things you can try:
1) exec getassetbalance trading
Verify balance is good (^ that command only works on the latest version of the wallet btw).

2) From coin control, find your 'TRADING-PUBLIC-KEY' and verify it has a positive balance.
You may have spent some from it, if so you can just re-send funds to it.
Then you can LOCK the funds with Coin Control to keep that from happening again.
The exchange can spend from it when an order is filled.

Hi Rob,

exec getassetbalance trading shows i have loads in it, but when i go to coin control the trading public key shows 1bbp. I just sent another 100k coins to see if it goes up.
Ill give it an hour or so, and see.




  • Budinga
  • Jr. Member

    • 38


    • 3
    • January 28, 2020, 02:21:29 AM
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #68 on: February 25, 2025, 02:41:53 AM »
Hi Rob,

exec getassetbalance trading shows i have loads in it, but when i go to coin control the trading public key shows 1bbp. I just sent another 100k coins to see if it goes up.
Ill give it an hour or so, and see.

Ok now suddenly it seems to be working, maybe i was doing something wrong thanks rob.


  • Rob Andrews
  • Administrator

    • 4214


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #69 on: February 26, 2025, 09:00:23 PM »
Ok now suddenly it seems to be working, maybe i was doing something wrong thanks rob.
Ok, glad you got it working.
Just an FYI, both the colored DOGE and the Trading balance (but NOT the native DOGE), those two addresses are internal and should never be out of sync with coin control (as they are regular chain addresses).  If you see an amount in coin control, it must match what is on the RPC.
Unless wallet is syncing or out of sync.  Also, these two addresses use instantsend, so as long as you see a lightning bolt after releasing money to yourself, it is instantly available in the rpc and in the trading room.

The getassetbalance DOGE however, is your private key, but we make a DOGE rpc call to count your UTXOs in real time so that balance can be off for a few minutes if a DOGE block is being mined (for example if you recently spent a DOGE txid, you would see the last balance until the block is mined).  But nevertheless there cannot be a double spend because at the time of spending we spend the confirmed UTXO.



  • Budinga
  • Jr. Member

    • 38


    • 3
    • January 28, 2020, 02:21:29 AM
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #70 on: February 27, 2025, 03:36:35 AM »
Ok, glad you got it working.
Just an FYI, both the colored DOGE and the Trading balance (but NOT the native DOGE), those two addresses are internal and should never be out of sync with coin control (as they are regular chain addresses).  If you see an amount in coin control, it must match what is on the RPC.
Unless wallet is syncing or out of sync.  Also, these two addresses use instantsend, so as long as you see a lightning bolt after releasing money to yourself, it is instantly available in the rpc and in the trading room.

The getassetbalance DOGE however, is your private key, but we make a DOGE rpc call to count your UTXOs in real time so that balance can be off for a few minutes if a DOGE block is being mined (for example if you recently spent a DOGE txid, you would see the last balance until the block is mined).  But nevertheless there cannot be a double spend because at the time of spending we spend the confirmed UTXO.

all seems good now. thanks.