BIBLEPAY - TESTNET THREAD - TESTING SANCTUARIES FOR GO LIVE AT CHRISTMAS

Started by Rob Andrews, October 03, 2017, 01:07:26 PM

Previous topic - Next topic

togoshigekata

So I opened a 2nd instance of Putty and connected to AWS Ubuntu server and ran ./biblepayd -daemon

in the 1st instance, I then ran ./biblepay-cli exec orderbook 5 times

./biblepay-cli exec orderbook
{
  "0": "[S]Price Quantity  Amount   Total       (RBBP)  Price  Quantity Amount     Total   [B]",
  "0": "0.5000  1000      500.00    500.00       |RBBP| 5.0000  5         25.00     25.00       ",
  "1": "5.0000  5         25.00     525.00       |RBBP| 3.0000  10000     30000.00  30025.00    ",
  "2": "5.0000  5         25.00     550.00       |RBBP| 0.5000  1000      500.00    30525.00    ",
  "3": "                                         |RBBP| 0.5000  5000      2500.00   33025.00    ",
  "4": "                                         |RBBP| 0.5000  1000      500.00    33525.00    ",
  "5": "                                         |RBBP| 0.0100  8000      80.00     33605.00    ",
  "6": "                                         |RBBP|                                         "
}


Rob Andrews

Quote from: admin on November 15, 2017, 04:14:07 PM
10-4 on QT, no problem.

Oh wait a minute, not sure if this is it, but, trading requires a background thread, in order to "ask" the other node if its OK to trade and send the escrow out.  Im thinking possibly since you are using biblepay-cli, maybe the thread isnt starting.  Could you try running biblepayd in another window and leave it running, then try the 'exec orderbook' a couple times from cli? 

In the mean time Ill start compiling windows so we can test win-win tomorrow.


So also, I just tested trading from an instance of biblepay-cli to myself and it actually worked, so I think the thread is working :)

Could you please check your log for "Trading Thread started"
and
Orig trade address %s  Orig Trade Amount %f

and see if any of that exists? 


Rob Andrews

Quote from: togoshigekata on November 15, 2017, 04:26:49 PM
So I opened a 2nd instance of Putty and connected to AWS Ubuntu server and ran ./biblepayd -daemon

in the 1st instance, I then ran ./biblepay-cli exec orderbook 5 times

./biblepay-cli exec orderbook
{
  "0": "[S]Price Quantity  Amount   Total       (RBBP)  Price  Quantity Amount     Total   [B]",
  "0": "0.5000  1000      500.00    500.00       |RBBP| 5.0000  5         25.00     25.00       ",
  "1": "5.0000  5         25.00     525.00       |RBBP| 3.0000  10000     30000.00  30025.00    ",
  "2": "5.0000  5         25.00     550.00       |RBBP| 0.5000  1000      500.00    30525.00    ",
  "3": "                                         |RBBP| 0.5000  5000      2500.00   33025.00    ",
  "4": "                                         |RBBP| 0.5000  1000      500.00    33525.00    ",
  "5": "                                         |RBBP| 0.0100  8000      80.00     33605.00    ",
  "6": "                                         |RBBP|                                         "
}


Oh cool, well lets see if anything different is happening, I just placed a sell:
exec order sell 1100 rbbp 2.27

You want to try a buy for same amount?


togoshigekata

Hmmm are the prices being rounded to whole number?, I dont think I see your sell order

./biblepay-cli exec orderlist
{
  "Command": "orderlist",
  "#": 0,
  "#": 1,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "0000000000000000000000000000000046e4601e60d451534891c6eeb990960b",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1100,
  "BBP_Price": 2,
  "#": 2,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "0000000000000000000000000000000059b84b37ccdbdab2de88921ec0090b16",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 1000,
  "BBP_Price": 7,
  "#": 3,
  "Address": "yjUmY8EmuSKf6EWJf4aajWovksV2TQbxWc",
  "Hash": "00000000000000000000000000000000eaf5580e5af715a422a3af748be2283a",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 5,
  "BBP_Price": 5,
  "#": 4,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "0000000000000000000000000000000044f81691000e57a1571f888714925a5d",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1000,
  "BBP_Price": 7,
  "#": 5,
  "Address": "yhXZrX7KCG9W7mSQt2mkkMP4VhePbDeGzU",
  "Hash": "00000000000000000000000000000000537acece1916dd50bdcfbbaf21ce795d",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 5,
  "BBP_Price": 5,
  "#": 6,
  "Address": "yhXZrX7KCG9W7mSQt2mkkMP4VhePbDeGzU",
  "Hash": "00000000000000000000000000000000d9f7a3268fbaf0b915caca43d2d9af68",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 10000,
  "BBP_Price": 3,
  "#": 7,
  "Address": "yhXZrX7KCG9W7mSQt2mkkMP4VhePbDeGzU",
  "Hash": "000000000000000000000000000000002d024b17482a2f57ca098db92755f7c6",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 5,
  "BBP_Price": 5,
  "#": 8,
  "Address": "yhXZrX7KCG9W7mSQt2mkkMP4VhePbDeGzU",
  "Hash": "00000000000000000000000000000000d9f6cd1a06c7e7d84eb267e64fa083c9",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 1100,
  "BBP_Price": 2,
  "#": 9,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "00000000000000000000000000000000dd439fa2940d5bc39bc09ce5d468d7cc",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1000,
  "BBP_Price": 9.199999999999999,
  "#": 10,
  "Address": "yjUmY8EmuSKf6EWJf4aajWovksV2TQbxWc",
  "Hash": "00000000000000000000000000000000fb1dd17f8688dcfed496632d5f035bd8",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 10000,
  "BBP_Price": 3
}

./biblepay-cli exec orderbook
{
  "0": "[S]Price Quantity  Amount   Total       (RBBP)  Price  Quantity Amount     Total   [B]",
  "0": "2.0000  1100      2200.00   2200.00      |RBBP| 9.2000  1000      9200.00   9200.00     ",
  "1": "3.0000  10000     30000.00  32200.00     |RBBP| 7.0000  1000      7000.00   16200.00    ",
  "2": "5.0000  5         25.00     32225.00     |RBBP| 5.0000  5         25.00     16225.00    ",
  "3": "5.0000  5         25.00     32250.00     |RBBP| 3.0000  10000     30000.00  46225.00    ",
  "4": "7.0000  1000      7000.00   39250.00     |RBBP| 2.0000  1100      2200.00   48425.00    ",
  "5": "                                         |RBBP|                                         "
}


Created a buy order after the above commands

./biblepay-cli exec order buy 1100 rbbp 2.27
{
  "Command": "order",
  "Action": "BUY",
  "Symbol": "RBBP",
  "Qty": 1100,
  "Price": 2.27,
  "Rec Address": "yjUmY8EmuSKf6EWJf4aajWovksV2TQbxWc",
  "Placing Order": "00000000000000000000000000000000925b9cb1dbd9d6ce3a42f06eaf823ba6"
}

./biblepay-cli exec orderlist
{
  "Command": "orderlist",
  "#": 0,
  "#": 1,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "0000000000000000000000000000000046e4601e60d451534891c6eeb990960b",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1100,
  "BBP_Price": 2,
  "#": 2,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "0000000000000000000000000000000059b84b37ccdbdab2de88921ec0090b16",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 1000,
  "BBP_Price": 7,
  "#": 3,
  "Address": "yjUmY8EmuSKf6EWJf4aajWovksV2TQbxWc",
  "Hash": "00000000000000000000000000000000eaf5580e5af715a422a3af748be2283a",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 5,
  "BBP_Price": 5,
  "#": 4,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "0000000000000000000000000000000044f81691000e57a1571f888714925a5d",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1000,
  "BBP_Price": 7,
  "#": 5,
  "Address": "yhXZrX7KCG9W7mSQt2mkkMP4VhePbDeGzU",
  "Hash": "00000000000000000000000000000000537acece1916dd50bdcfbbaf21ce795d",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 5,
  "BBP_Price": 5,
  "#": 6,
  "Address": "yhXZrX7KCG9W7mSQt2mkkMP4VhePbDeGzU",
  "Hash": "00000000000000000000000000000000d9f7a3268fbaf0b915caca43d2d9af68",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 10000,
  "BBP_Price": 3,
  "#": 7,
  "Address": "yjUmY8EmuSKf6EWJf4aajWovksV2TQbxWc",
  "Hash": "00000000000000000000000000000000925b9cb1dbd9d6ce3a42f06eaf823ba6",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1100,
  "BBP_Price": 2.27,
  "#": 8,
  "Address": "yhXZrX7KCG9W7mSQt2mkkMP4VhePbDeGzU",
  "Hash": "000000000000000000000000000000002d024b17482a2f57ca098db92755f7c6",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 5,
  "BBP_Price": 5,
  "#": 9,
  "Address": "yhXZrX7KCG9W7mSQt2mkkMP4VhePbDeGzU",
  "Hash": "00000000000000000000000000000000d9f6cd1a06c7e7d84eb267e64fa083c9",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 1100,
  "BBP_Price": 2,
  "#": 10,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "00000000000000000000000000000000dd439fa2940d5bc39bc09ce5d468d7cc",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1000,
  "BBP_Price": 9.199999999999999,
  "#": 11,
  "Address": "yjUmY8EmuSKf6EWJf4aajWovksV2TQbxWc",
  "Hash": "00000000000000000000000000000000fb1dd17f8688dcfed496632d5f035bd8",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 10000,
  "BBP_Price": 3
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec orderbook
{
  "0": "[S]Price Quantity  Amount   Total       (RBBP)  Price  Quantity Amount     Total   [B]",
  "0": "2.0000  1100      2200.00   2200.00      |RBBP| 9.2000  1000      9200.00   9200.00     ",
  "1": "3.0000  10000     30000.00  32200.00     |RBBP| 7.0000  1000      7000.00   16200.00    ",
  "2": "5.0000  5         25.00     32225.00     |RBBP| 5.0000  5         25.00     16225.00    ",
  "3": "5.0000  5         25.00     32250.00     |RBBP| 3.0000  10000     30000.00  46225.00    ",
  "4": "7.0000  1000      7000.00   39250.00     |RBBP| 2.2700  1100      2497.00   48722.00    ",
  "5": "                                         |RBBP| 2.0000  1100      2200.00   50922.00    ",
  "6": "                                         |RBBP|                                         "
}


Ok I see my buy order in the orderlist and orderbook

Rob Andrews

Its possible I may have a 5 min timeout on the escrow, so lets move to a new test if you are there, a time sensitive test
I just sold 1100 for 2.29, please try to buy quick
exec order sell 1100 rbbp 2.29

then, a couple mins later, do an exec orderbook once per minute, see if that kicks it through

togoshigekata

./biblepay-cli exec orderlist
{
  "Command": "orderlist",
  "#": 0,
  "#": 1,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "0000000000000000000000000000000046e4601e60d451534891c6eeb990960b",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1100,
  "BBP_Price": 2,
  "#": 2,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "0000000000000000000000000000000059b84b37ccdbdab2de88921ec0090b16",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 1000,
  "BBP_Price": 7,
  "#": 3,
  "Address": "yjUmY8EmuSKf6EWJf4aajWovksV2TQbxWc",
  "Hash": "00000000000000000000000000000000eaf5580e5af715a422a3af748be2283a",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 5,
  "BBP_Price": 5,
  "#": 4,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "0000000000000000000000000000000044f81691000e57a1571f888714925a5d",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1000,
  "BBP_Price": 7,
  "#": 5,
  "Address": "yhXZrX7KCG9W7mSQt2mkkMP4VhePbDeGzU",
  "Hash": "00000000000000000000000000000000537acece1916dd50bdcfbbaf21ce795d",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 5,
  "BBP_Price": 5,
  "#": 6,
  "Address": "yhXZrX7KCG9W7mSQt2mkkMP4VhePbDeGzU",
  "Hash": "00000000000000000000000000000000d9f7a3268fbaf0b915caca43d2d9af68",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 10000,
  "BBP_Price": 3,
  "#": 7,
  "Address": "yjUmY8EmuSKf6EWJf4aajWovksV2TQbxWc",
  "Hash": "00000000000000000000000000000000925b9cb1dbd9d6ce3a42f06eaf823ba6",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1100,
  "BBP_Price": 2.27,
  "#": 8,
  "Address": "yhXZrX7KCG9W7mSQt2mkkMP4VhePbDeGzU",
  "Hash": "000000000000000000000000000000002d024b17482a2f57ca098db92755f7c6",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 5,
  "BBP_Price": 5,
  "#": 9,
  "Address": "yhXZrX7KCG9W7mSQt2mkkMP4VhePbDeGzU",
  "Hash": "00000000000000000000000000000000d9f6cd1a06c7e7d84eb267e64fa083c9",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 1100,
  "BBP_Price": 2,
  "#": 10,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "00000000000000000000000000000000dd439fa2940d5bc39bc09ce5d468d7cc",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1000,
  "BBP_Price": 9.199999999999999,
  "#": 11,
  "Address": "yjUmY8EmuSKf6EWJf4aajWovksV2TQbxWc",
  "Hash": "00000000000000000000000000000000fb1dd17f8688dcfed496632d5f035bd8",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 10000,
  "BBP_Price": 3
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec orderbook
{
  "0": "[S]Price Quantity  Amount   Total       (RBBP)  Price  Quantity Amount     Total   [B]",
  "0": "2.0000  1100      2200.00   2200.00      |RBBP| 9.2000  1000      9200.00   9200.00     ",
  "1": "3.0000  10000     30000.00  32200.00     |RBBP| 7.0000  1000      7000.00   16200.00    ",
  "2": "5.0000  5         25.00     32225.00     |RBBP| 5.0000  5         25.00     16225.00    ",
  "3": "5.0000  5         25.00     32250.00     |RBBP| 3.0000  10000     30000.00  46225.00    ",
  "4": "7.0000  1000      7000.00   39250.00     |RBBP| 2.2700  1100      2497.00   48722.00    ",
  "5": "                                         |RBBP| 2.0000  1100      2200.00   50922.00    ",
  "6": "                                         |RBBP|                                         "
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec order buy 1100 rbbp 2.29
{
  "Command": "order",
  "Action": "BUY",
  "Symbol": "RBBP",
  "Qty": 1100,
  "Price": 2.29,
  "Rec Address": "yjUmY8EmuSKf6EWJf4aajWovksV2TQbxWc",
  "Placing Order": "0000000000000000000000000000000041346b76d79494179efbc8cfa2b1903d"
}


ok executed buy order real quick
./biblepay-cli exec order buy 1100 rbbp 2.29

but, weird I dont see your order again, very strange

Rob Andrews

Hmm, let me do some more testing, its not behaving quite right.   :P

Rob Andrews

Quote from: togoshigekata on November 15, 2017, 05:13:17 PM

Ahh, ok I see what happened, I crashed the sanctuary due to a buffer overflow.  Ok, luckily this might allow us to test a little more now, but I have to go in about 15 mins.  I restarted my sanctuary and now I can see the orders again.


So now try your orderbook, and lets try another trade :)

I just did this one, can you buy:
exec order sell 2100 rbbp 1.24


togoshigekata

ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli getwalletinfo
{
  "walletversion": 61000,
  "balance": 663838.95482574,
  "retirement_account_balance": 1004565,
  "unconfirmed_balance": 0.00000000,
  "immature_balance": 0.00000000,
  "txcount": 36,
  "keypoololdest": 1507584559,
  "keypoolsize": 1001,
  "keys_left": 1001,
  "paytxfee": 0.00000000
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec retirementbalance
{
  "Command": "retirementbalance",
  "balance": 1004565
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec orderbook
{
  "0": "[S]Price Quantity  Amount   Total       (RBBP)  Price  Quantity Amount     Total   [B]",
  "0": "0.5000  1000      500.00    500.00       |RBBP| 9.2000  1000      9200.00   9200.00     ",
  "1": "1.2400  2100      2604.00   3104.00      |RBBP| 5.0000  5         25.00     9225.00     ",
  "2": "2.2700  1100      2497.00   5601.00      |RBBP| 3.0000  10000     30000.00  39225.00    ",
  "3": "2.2900  1100      2519.00   8120.00      |RBBP| 2.2900  1100      2519.00   41744.00    ",
  "4": "3.0000  10000     30000.00  38120.00     |RBBP| 2.2700  1100      2497.00   44241.00    ",
  "5": "5.0000  5         25.00     38145.00     |RBBP| 2.0000  1100      2200.00   46441.00    ",
  "6": "5.0000  5         25.00     38170.00     |RBBP| 1.0000  1         1.00      46442.00    ",
  "7": "                                         |RBBP| 0.5000  1000      500.00    46942.00    ",
  "8": "                                         |RBBP| 0.5000  5000      2500.00   49442.00    ",
  "9": "                                         |RBBP| 0.5000  1000      500.00    49942.00    ",
  "10": "                                         |RBBP| 0.0100  8000      80.00     50022.00    ",
  "11": "                                         |RBBP|                                         "
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec order buy 2100 rbbp 1.24
{
  "Command": "order",
  "Action": "BUY",
  "Symbol": "RBBP",
  "Qty": 2100,
  "Price": 1.24,
  "Rec Address": "yjUmY8EmuSKf6EWJf4aajWovksV2TQbxWc",
  "Placing Order": "0000000000000000000000000000000077707dd750c97dd7d21e316fe8b6e497"
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec orderbook
{
  "0": "[S]Price Quantity  Amount   Total       (RBBP)  Price  Quantity Amount     Total   [B]",
  "0": "0.5000  1000      500.00    500.00       |RBBP| 9.2000  1000      9200.00   9200.00     ",
  "1": "1.2400  2100      2604.00   3104.00      |RBBP| 5.0000  5         25.00     9225.00     ",
  "2": "2.2700  1100      2497.00   5601.00      |RBBP| 3.0000  10000     30000.00  39225.00    ",
  "3": "2.2900  1100      2519.00   8120.00      |RBBP| 2.2900  1100      2519.00   41744.00    ",
  "4": "3.0000  10000     30000.00  38120.00     |RBBP| 2.2700  1100      2497.00   44241.00    ",
  "5": "5.0000  5         25.00     38145.00     |RBBP| 2.0000  1100      2200.00   46441.00    ",
  "6": "5.0000  5         25.00     38170.00     |RBBP| 1.2400  2100      2604.00   49045.00    ",
  "7": "                                         |RBBP| 1.0000  1         1.00      49046.00    ",
  "8": "                                         |RBBP| 0.5000  1000      500.00    49546.00    ",
  "9": "                                         |RBBP| 0.5000  5000      2500.00   52046.00    ",
  "10": "                                         |RBBP| 0.5000  1000      500.00    52546.00    ",
  "11": "                                         |RBBP| 0.0100  8000      80.00     52626.00    ",
  "12": "                                         |RBBP|                                         "
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec listdebug
{
  "Command": "listdebug",
  "1510796794": "PREPARING ESCROW FOR 25.00 RBBP FOR SANCTUARY yadZnJ3hD3FRC8CiLZEVNqejvQFgNtu5ci OLD ESCTXID ",
  "1510796795": "PREPARING ESCROW FOR 30000.00 RBBP FOR SANCTUARY yadZnJ3hD3FRC8CiLZEVNqejvQFgNtu5ci OLD ESCTXID ",
  "1510796798": "PREPARING ESCROW FOR 2497.00 RBBP FOR SANCTUARY yadZnJ3hD3FRC8CiLZEVNqejvQFgNtu5ci OLD ESCTXID ",
  "1510796799": "PREPARING ESCROW FOR 25.00 RBBP FOR SANCTUARY yadZnJ3hD3FRC8CiLZEVNqejvQFgNtu5ci OLD ESCTXID ",
  "1510796864": "PREPARING ESCROW FOR 2604.00 RBBP FOR SANCTUARY yadZnJ3hD3FRC8CiLZEVNqejvQFgNtu5ci OLD ESCTXID "
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec tradehistory
{
  "11/15/2017 7:46:35 PM": "BOT 10000 RBBP @ 3.0000 TOTAL 30000.00BBP ORDER 00000000000000000000000000000000fb1dd17f8688dcfed496632d5f035bd8.",
  "11/15/2017 7:46:42 PM": "BOT 1100 RBBP @ 2.2700 TOTAL 2497.00BBP ORDER 00000000000000000000000000000000925b9cb1dbd9d6ce3a42f06eaf823ba6.",
  "11/15/2017 7:46:43 PM": "BOT 1100 RBBP @ 2.2900 TOTAL 2519.00BBP ORDER 0000000000000000000000000000000041346b76d79494179efbc8cfa2b1903d."
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec retirementbalance
{
  "Command": "retirementbalance",
  "balance": 1034515
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli getwalletinfo
{
  "walletversion": 61000,
  "balance": 629715.55447854,
  "retirement_account_balance": 1039531,
  "unconfirmed_balance": 0.00000000,
  "immature_balance": 0.00000000,
  "txcount": 45,
  "keypoololdest": 1507584559,
  "keypoolsize": 1001,
  "keys_left": 995,
  "paytxfee": 0.00000000
}


Ok placed buy order!
./biblepay-cli exec order buy 2100 rbbp 1.24

Im seeing stuff in listdebug and tradehistory now!

Before buy order I had:
tBBP "balance": 663838.95482574,
tRBBP "balance": 1004565

After buy order I had:
tBBP "balance": 629715.55447854,
tRBBP "balance": 1034515

tBBP Difference:  -34123.4003472
tRBBP Difference: 29950

Hmmm, numbers seem weird, but Im not sure if multiple orders got executed
Looks like I had 1 miner thread running at the time too

Edit: Im now updated to 1.0.5.9b

Edit2: Tradehistory shows I should have:
lost -35,016 BBP
and gained 12,200 RBBP

Rob Andrews

Quote from: togoshigekata on November 15, 2017, 07:50:05 PM
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli getwalletinfo
{
  "walletversion": 61000,
  "balance": 663838.95482574,
  "retirement_account_balance": 1004565,
  "unconfirmed_balance": 0.00000000,
  "immature_balance": 0.00000000,
  "txcount": 36,
  "keypoololdest": 1507584559,
  "keypoolsize": 1001,
  "keys_left": 1001,
  "paytxfee": 0.00000000
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec retirementbalance
{
  "Command": "retirementbalance",
  "balance": 1004565
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec orderbook
{
  "0": "[S]Price Quantity  Amount   Total       (RBBP)  Price  Quantity Amount     Total   [B]",
  "0": "0.5000  1000      500.00    500.00       |RBBP| 9.2000  1000      9200.00   9200.00     ",
  "1": "1.2400  2100      2604.00   3104.00      |RBBP| 5.0000  5         25.00     9225.00     ",
  "2": "2.2700  1100      2497.00   5601.00      |RBBP| 3.0000  10000     30000.00  39225.00    ",
  "3": "2.2900  1100      2519.00   8120.00      |RBBP| 2.2900  1100      2519.00   41744.00    ",
  "4": "3.0000  10000     30000.00  38120.00     |RBBP| 2.2700  1100      2497.00   44241.00    ",
  "5": "5.0000  5         25.00     38145.00     |RBBP| 2.0000  1100      2200.00   46441.00    ",
  "6": "5.0000  5         25.00     38170.00     |RBBP| 1.0000  1         1.00      46442.00    ",
  "7": "                                         |RBBP| 0.5000  1000      500.00    46942.00    ",
  "8": "                                         |RBBP| 0.5000  5000      2500.00   49442.00    ",
  "9": "                                         |RBBP| 0.5000  1000      500.00    49942.00    ",
  "10": "                                         |RBBP| 0.0100  8000      80.00     50022.00    ",
  "11": "                                         |RBBP|                                         "
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec order buy 2100 rbbp 1.24
{
  "Command": "order",
  "Action": "BUY",
  "Symbol": "RBBP",
  "Qty": 2100,
  "Price": 1.24,
  "Rec Address": "yjUmY8EmuSKf6EWJf4aajWovksV2TQbxWc",
  "Placing Order": "0000000000000000000000000000000077707dd750c97dd7d21e316fe8b6e497"
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec orderbook
{
  "0": "[S]Price Quantity  Amount   Total       (RBBP)  Price  Quantity Amount     Total   [B]",
  "0": "0.5000  1000      500.00    500.00       |RBBP| 9.2000  1000      9200.00   9200.00     ",
  "1": "1.2400  2100      2604.00   3104.00      |RBBP| 5.0000  5         25.00     9225.00     ",
  "2": "2.2700  1100      2497.00   5601.00      |RBBP| 3.0000  10000     30000.00  39225.00    ",
  "3": "2.2900  1100      2519.00   8120.00      |RBBP| 2.2900  1100      2519.00   41744.00    ",
  "4": "3.0000  10000     30000.00  38120.00     |RBBP| 2.2700  1100      2497.00   44241.00    ",
  "5": "5.0000  5         25.00     38145.00     |RBBP| 2.0000  1100      2200.00   46441.00    ",
  "6": "5.0000  5         25.00     38170.00     |RBBP| 1.2400  2100      2604.00   49045.00    ",
  "7": "                                         |RBBP| 1.0000  1         1.00      49046.00    ",
  "8": "                                         |RBBP| 0.5000  1000      500.00    49546.00    ",
  "9": "                                         |RBBP| 0.5000  5000      2500.00   52046.00    ",
  "10": "                                         |RBBP| 0.5000  1000      500.00    52546.00    ",
  "11": "                                         |RBBP| 0.0100  8000      80.00     52626.00    ",
  "12": "                                         |RBBP|                                         "
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec listdebug
{
  "Command": "listdebug",
  "1510796794": "PREPARING ESCROW FOR 25.00 RBBP FOR SANCTUARY yadZnJ3hD3FRC8CiLZEVNqejvQFgNtu5ci OLD ESCTXID ",
  "1510796795": "PREPARING ESCROW FOR 30000.00 RBBP FOR SANCTUARY yadZnJ3hD3FRC8CiLZEVNqejvQFgNtu5ci OLD ESCTXID ",
  "1510796798": "PREPARING ESCROW FOR 2497.00 RBBP FOR SANCTUARY yadZnJ3hD3FRC8CiLZEVNqejvQFgNtu5ci OLD ESCTXID ",
  "1510796799": "PREPARING ESCROW FOR 25.00 RBBP FOR SANCTUARY yadZnJ3hD3FRC8CiLZEVNqejvQFgNtu5ci OLD ESCTXID ",
  "1510796864": "PREPARING ESCROW FOR 2604.00 RBBP FOR SANCTUARY yadZnJ3hD3FRC8CiLZEVNqejvQFgNtu5ci OLD ESCTXID "
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec tradehistory
{
  "11/15/2017 7:46:35 PM": "BOT 10000 RBBP @ 3.0000 TOTAL 30000.00BBP ORDER 00000000000000000000000000000000fb1dd17f8688dcfed496632d5f035bd8.",
  "11/15/2017 7:46:42 PM": "BOT 1100 RBBP @ 2.2700 TOTAL 2497.00BBP ORDER 00000000000000000000000000000000925b9cb1dbd9d6ce3a42f06eaf823ba6.",
  "11/15/2017 7:46:43 PM": "BOT 1100 RBBP @ 2.2900 TOTAL 2519.00BBP ORDER 0000000000000000000000000000000041346b76d79494179efbc8cfa2b1903d."
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli exec retirementbalance
{
  "Command": "retirementbalance",
  "balance": 1034515
}
ubuntu@ip-172-31-34-47:~/biblepay/src$ ./biblepay-cli getwalletinfo
{
  "walletversion": 61000,
  "balance": 629715.55447854,
  "retirement_account_balance": 1039531,
  "unconfirmed_balance": 0.00000000,
  "immature_balance": 0.00000000,
  "txcount": 45,
  "keypoololdest": 1507584559,
  "keypoolsize": 1001,
  "keys_left": 995,
  "paytxfee": 0.00000000
}


Ok placed buy order!
./biblepay-cli exec order buy 2100 rbbp 1.24

Im seeing stuff in listdebug and tradehistory now!

Before buy order I had:
tBBP "balance": 663838.95482574,
tRBBP "balance": 1004565

After buy order I had:
tBBP "balance": 629715.55447854,
tRBBP "balance": 1034515

tBBP Difference:  -34123.4003472
tRBBP Difference: 29950

Hmmm, numbers seem weird, but Im not sure if multiple orders got executed
Looks like I had 1 miner thread running at the time too

Edit: Im now updated to 1.0.5.9b

Sweet well you should be able to do exec tradehistory, and see if that reconciles?


Rob Andrews

I just did a new :

21:30:47

exec order sell 5000 rbbp 1.35

If someone wants to jump on and enter an opposing buy order?


Rob Andrews

Quote from: Alex on November 15, 2017, 09:47:33 PM
Hey Rob, I upgraded my test node and I'm fully synced on testnet. Also just to clarify, the issue also happens on my US machines with the CST timezone and not only the European ones. I'm ready to do any test you would like me to do when you're around.

Im going to be hitting the sack in a few mins, but through the night you can fully sync in testnet, run the code, then see if you receive a CheckProofOfWork(1) log then post it.


klondike

Rob,

i did it by your instrunctions,typed and nothing... and btw: i had in crontab correct
Quotecd ~/.biblepaycore/watchman && ./venv/bin/python bin/watchman.py >/dev/null 2>&1
when you checked my screens what i posted here .. you must saw it
it looks,that all your setup is broken.Exists anybody whom working masternode except you? I dont know this person.By me nobody.It will be very hard start masternode when doesnt working still.





what happened when ill close controller-win-wallet and again run it? its OK?


thanks

klondike

masternode ENABLED finally? ::)




klondike