Bible Pay

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - togoshigekata

Pages: 1 ... 28 29 30 31 32 33 34 [35] 36
511
08:53:40
exec listorders
{
  "Command": "listorders",
  "#": 0
}

08:55:48
exec order buy 1000 rbbp .5
{
  "Command": "order",
  "Action": "BUY",
  "Symbol": "RBBP",
  "Qty": 1000,
  "Price": 0.5,
  "Rec Address": "yggy2oVuVKTsVJvLycK6V9HW7qP9ybVcbF",
  "Placing Order": "000000000000000000000000000000003a5a5883a8d0f1f7f18218437bd9f07a"
}

09:01:15
exec listorders
{
  "Command": "listorders",
  "#": 0,
  "#": 1,
  "Address": "yggy2oVuVKTsVJvLycK6V9HW7qP9ybVcbF",
  "Hash": "000000000000000000000000000000003a5a5883a8d0f1f7f18218437bd9f07a",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1000,
  "BBP_Price": 0.5
}

09:01:31
exec retirementbalance
{
  "Command": "retirementbalance",
  "balance": 74270
}

10:20:35
exec retirementbalance
{
  "Command": "retirementbalance",
  "balance": 75411
}

(I have one thread mining, so I think my retirement balance keeps going up)

10:21:50
exec listorders
{
  "Command": "listorders",
  "#": 0,
  "#": 1,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "000000000000000000000000000000003fd98b148cfb8f195d18d2c585157345",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 1000,
  "BBP_Price": 0.5,
  "#": 2,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "00000000000000000000000000000000c054dac5a0557245009b1bcf5a39e04b",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 500,
  "BBP_Price": 0.5,
  "#": 3,
  "Address": "yggy2oVuVKTsVJvLycK6V9HW7qP9ybVcbF",
  "Hash": "000000000000000000000000000000003a5a5883a8d0f1f7f18218437bd9f07a",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1000,
  "BBP_Price": 0.5,
  "#": 4,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "0000000000000000000000000000000002e2d7d5b52d8193fcd654e3cdbdb58a",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 5000,
  "BBP_Price": 0.5,
  "#": 5,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "00000000000000000000000000000000028e254a8d464cd4d5740c70c4b7f193",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1000,
  "BBP_Price": 0.5
}

10:24:29
getinfo
{
  "version": 1000506,
  "protocolversion": 70708,
  "walletversion": 61000,
  "wallet_fullversion": "1.0.5.6",
  "balance": 7569.69500000,
  "privatesend_balance": 0.00000000,
  "blocks": 39347,
  "timeoffset": 3,
  "connections": 8,
  "proxy": "",
  "difficulty": 0.3709311342166779,
  "testnet": true,
  "keypoololdest": 1507446797,
  "keypoolsize": 1001,
  "paytxfee": 0.00000000,
  "relayfee": 0.00010000,
  "errors": ""
}

10:26:43
exec order sell 5000 RBBP 0.5
{
  "Command": "order",
  "Action": "SELL",
  "Symbol": "RBBP",
  "Qty": 5000,
  "Price": 0.5,
  "Rec Address": "yggy2oVuVKTsVJvLycK6V9HW7qP9ybVcbF",
  "Placing Order": "00000000000000000000000000000000126ea3b627a26003fbbc8bec87d39239"
}

10:26:52
exec retirementbalance
{
  "Command": "retirementbalance",
  "balance": 75982
}

10:27:06
exec tradehistory
{
}

10:27:12
exec listorders
{
  "Command": "listorders",
  "#": 0,
  "#": 1,
  "Address": "yggy2oVuVKTsVJvLycK6V9HW7qP9ybVcbF",
  "Hash": "00000000000000000000000000000000126ea3b627a26003fbbc8bec87d39239",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 5000,
  "BBP_Price": 0.5,
  "#": 2,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "000000000000000000000000000000003fd98b148cfb8f195d18d2c585157345",
  "Symbol": "RBBP",
  "Action": "SELL",
  "Qty": 1000,
  "BBP_Price": 0.5,
  "#": 3,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "00000000000000000000000000000000c054dac5a0557245009b1bcf5a39e04b",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 500,
  "BBP_Price": 0.5,
  "#": 4,
  "Address": "yggy2oVuVKTsVJvLycK6V9HW7qP9ybVcbF",
  "Hash": "000000000000000000000000000000003a5a5883a8d0f1f7f18218437bd9f07a",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1000,
  "BBP_Price": 0.5,
  "#": 5,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "0000000000000000000000000000000002e2d7d5b52d8193fcd654e3cdbdb58a",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 5000,
  "BBP_Price": 0.5,
  "#": 6,
  "Address": "8nhyyaPy79cbUvSaMRTdJtaX7wXUo1nFdW",
  "Hash": "00000000000000000000000000000000028e254a8d464cd4d5740c70c4b7f193",
  "Symbol": "RBBP",
  "Action": "BUY",
  "Qty": 1000,
  "BBP_Price": 0.5
}

10:28:19
getinfo
{
  "version": 1000506,
  "protocolversion": 70708,
  "walletversion": 61000,
  "wallet_fullversion": "1.0.5.6",
  "balance": 7598.22300000,
  "privatesend_balance": 0.00000000,
  "blocks": 39350,
  "timeoffset": 3,
  "connections": 8,
  "proxy": "",
  "difficulty": 0.7919541757803531,
  "testnet": true,
  "keypoololdest": 1507446797,
  "keypoolsize": 1001,
  "paytxfee": 0.00000000,
  "relayfee": 0.00010000,
  "errors": ""
}

Hmmmm

512
Im 34.208, been 18+ hours active, still hummin!

Retirement Accounts WIki:
http://wiki.biblepay.org/Retirement_Accounts

Tools >> Debug Console

exec retirementbalance
exec tradehistory
exec orderbook
exec listorders
exec order [  Buy/Sell/Cancel ]   Qty  Symbol [Price]

I placed a buy RBBP order, 1000 RBBP at 0.5 BBP each

513
Hmm, note that 1058 relaxes the watchdog timeout for the network from 4 hours to 8 hours, so the problem will still reappear if the crontab doesnt work LOL, so anyway just try running the crontab without the >/dev/null suffix, see if it works, if it doesnt try changing to the shortcut ~/.biblepaycore for the beginning CD part of the command etc.

Hahaha, I guess we shall see what happens in a few hours :) , masternode/sanctuary has been live for 5 hours 20 minutes so far. Im not sure if I was just impatient on v1.0.5.6, or if v1.0.5.8 fixed my issue, or if my crontab actually is wrong.

Ive just modified crontab:
crontab -e

Changed this:   
* * * * * cd /home/ubuntu/.biblepaycore/watchman && ./venv/bin/python bin/watchman.py >/dev/null 2>&1

To this:
* * * * * cd /home/ubuntu/.biblepaycore/watchman && ./venv/bin/python bin/watchman.py

514
oooo Interesting, no changes ( other than updating to v1.0.5.8 ) and now later masternode has Enabled status!

My crontab is:

* * * * * cd /home/ubuntu/.biblepaycore/watchman && ./venv/bin/python bin/watchman.py >/dev/null 2>&1

My login name is:  ubuntu

515
my node is  stuck in "pre-enabled" status.
not sure if it's relevant but it's happening after i upgraded to "1.0.5.6"

"78a235e8d3427b7fec1a0f3635cf3aeb2dbf7d0d53c44578815060d80280a271-1": "PRE_ENABLED"

updaded BBP to  "1.0.5.8"  and it fixed the issue.

Hmmm, my Masternode has been stuck in PRE_ENABLED as well, I waited a good 45+ minutes, but was still stuck in that state, Ill try updating from v1.0.5.6 to v1.0.5.8 and report back

516
These are steps I took to try to pinpoint watchman issue,
I previously before this installed latest versions of biblepay on my Masternode setup from a month ago:

===

On Sanctuary/Masternode Linux Wallet:

=== Stop Biblepay & Delete Old Testnet .Dat Data
cd biblepay/src
./biblepay-cli stop

cd ~/.biblepaycore/testnet3

rm blocks -R
rm chainstate -R
rm banlist.dat
rm fee_estimates.dat
rm governance.dat
rm mncache.dat
rm mnpayments.dat
rm netfulfilled.dat
rm peers.dat

=== Delete, Download and Setup Watchman
cd ..
rm -r -f watchman

git clone https://github.com/biblepay/watchman.git
cd watchman
virtualenv venv
venv/bin/pip install -r requirements.txt

vi watchman.conf
i
(add hashtag # to front of network=mainnet)
(remove hashtag # in front of network=testnet)
ESC
:wq

=== Turn on BiblePay
cd ../../biblepay/src

./biblepayd -daemon

(Wait for full sync)

=== Now Try Watchman
cd ~/.biblepaycore/watchman

venv/bin/python bin/watchman.py

OUTPUT: None, Blank, Yay!

============================================

~/.biblepaycore/watchman$ ./venv/bin/py.test ./test
=========================================================== test session starts ===========================================================
platform linux2 -- Python 2.7.12, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
rootdir: /home/ubuntu/.biblepaycore/watchman, inifile:
collected 12 items / 2 errors

================================================================= ERRORS ==================================================================
___________________________________________ ERROR collecting test/unit/models/test_proposals.py ___________________________________________
test/unit/models/test_proposals.py:10: in <module>
    from models import GovernanceObject, Proposal, Vote
lib/models.py:5: in <module>
    import init
lib/init.py:103: in <module>
    main()
lib/init.py:94: in main
    if not is_database_correctly_configured():
lib/init.py:55: in is_database_correctly_configured
    sys.exit(1)
E   SystemExit: 1
------------------------------------------------------------- Captured stdout -------------------------------------------------------------
[error]: unable to open database file
Cannot connect to database. Please ensure database service is running and user access is properly configured in 'watchman.conf'.
__________________________________________ ERROR collecting test/unit/models/test_superblocks.py __________________________________________
test/unit/models/test_superblocks.py:10: in <module>
    from models import GovernanceObject, Proposal, Superblock, Vote
lib/models.py:5: in <module>
    import init
lib/init.py:103: in <module>
    main()
lib/init.py:94: in main
    if not is_database_correctly_configured():
lib/init.py:55: in is_database_correctly_configured
    sys.exit(1)
E   SystemExit: 1
------------------------------------------------------------- Captured stdout -------------------------------------------------------------
[error]: unable to open database file
Cannot connect to database. Please ensure database service is running and user access is properly configured in 'watchman.conf'.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================= 2 error in 0.18 seconds ========================================================

=== Watchman Database Poking

sudo apt-get install sqlite3
sqlite3 Watchman
sqlite>
select * from votes;
.table <enter>

== OUTPUT:
1|2|2|1|2017-11-13 16:20:01.419328|2017-11-13 16:20:01.419338|2017-11-13 16:20:01.419344|f2ff8b0970c959e1ea750234593ff358f9ea7ce8e162a6c6ab50c6b31035330c

governance_objects  proposals           signals             votes
outcomes            settings            superblocks         watchdogs

CTRL + D to exit sqlite

=========

=== Windows Home Controller Wallet - Unban, Reindex and Start Masternode
Tools >> Peer List >> (Unban banned peers)

Tools >> Wallet Repair >> Rebuild index

Tools >> Debug Console
masternode list
masternode list-conf
masternode start-alias MASTERNODENAME

setgenerate true 4
(I started mining, and am waiting for Masternode/Sanctuary to get out of PRE_ENABLED state)
(No Watch dog expired state so that seems good)

=== Linux Masternode/Sanctuary Wallet - Check Status

./biblepay-cli masternode status
{
  "vin": "CTxIn(COutPoint(be3eaf8322909bbb150d89058bf261f0a2bf96369c8928313a3d69e2d5087add, 1), scriptSig=)",
  "service": "34.208.206.95:40001",
  "payee": "yggy2oVuVKTsVJvLycK6V9HW7qP9ybVcbF",
  "status": "Masternode successfully started"
}


517
I updated my Sanctuary/Masternode and Home Wallets to v1.0.5.6
and updated Watchman to 1.0.0.1b

Im getting WATCHDOG_EXPIRED status

The tests for watchman ran fine,
but when I run watchman.py I get the below simplejson.scanner.JSONDecodeError error:

~/.biblepaycore/watchman$ ./venv/bin/python bin/watchman.py

Traceback (most recent call last):
  File "bin/watchman.py", line 244, in <module>
    main()
  File "bin/watchman.py", line 191, in main
    perform_biblepayd_object_sync(biblepayd)
  File "bin/watchman.py", line 24, in perform_biblepayd_object_sync
    GovernanceObject.sync(biblepayd)
  File "lib/models.py", line 87, in sync
    (go, subobj) = self.import_gobject_from_biblepayd(biblepayd, item)
  File "lib/models.py", line 116, in import_gobject_from_biblepayd
    object_hex = biblepaylib.SHIM_deserialise_from_biblepayd(object_hex)
  File "lib/biblepaylib.py", line 204, in SHIM_deserialise_from_biblepayd
    obj = deserialise(biblepayd_hex)
  File "lib/biblepaylib.py", line 229, in deserialise
    obj = simplejson.loads(json, use_decimal=True)
  File "/home/ubuntu/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/simplejson/__init__.py"                                 , line 533, in loads
    return cls(encoding=encoding, **kw).decode(s)
  File "/home/ubuntu/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/simplejson/decoder.py",                                  line 370, in decode
    obj, end = self.raw_decode(s)
  File "/home/ubuntu/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/simplejson/decoder.py",                                  line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 115 (                                 char 114)

518
These are my notes from doing Masternode testing a month ago:  http://forum.biblepay.org/index.php?topic=16.msg151#msg151

I am going to re-setup a masternode today and make sure every step is correct and clear :)

519
Does the Home/Controller wallet need to be upgraded? 

Windows 32 bit download from biblepay.org still has version 1.0.4.8

I also get stuck on syncing Home/Controller wallet,  stuck at 22 hours behind on block 25684

520
I think all the masternodes went down?
My controller and sanctuary wallets are on different blocks now >.>

521
I think I found a solution to watchman

On Sanctuary Wallet (remote linux machine), I added a line to ~/.biblepaycore/biblepay.conf
rpcport=9998

I got this port number from here:
https://github.com/biblepay/watchman/blob/c6f4cdc831b45019b1f7b3b6ce99100b5fa7086f/lib/biblepay_config.py#L37

And I re-ran the Wallet
~/.biblepaycore/watchman$ venv/bin/python bin/watchman.py
biblepayd not synced with network! Awaiting full sync before running watchman.

Never received this message before!, Waited for sync, ran again and got no error, I was always getting errors!, but I also got no output, SUCCESS!?

QUESTION: How do I check to make sure watchman is working?

Another slight change I made, not sure if it was important, I manually created the /database folder inside the /watchman folder

===

I got 1 error when running the watchman tests though

~/.biblepaycore/watchman$ ./venv/bin/py.test ./test
====================================== test session starts ======================================
platform linux2 -- Python 2.7.12, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
rootdir: /home/ubuntu/.biblepaycore/watchman, inifile:
collected 20 items

test/integration/test_jsonrpc.py F
test/unit/test_biblepay_config.py .
test/unit/test_biblepay_things.py .....
test/unit/test_biblepayd_data_shims.py ..
test/unit/test_models.py ..
test/unit/test_submit_command.py .
test/unit/models/test_proposals.py ...
test/unit/models/test_superblocks.py .....

=========================================== FAILURES ============================================
________________________________________ test_biblepayd _________________________________________

    def test_biblepayd():
        config_text = BiblepayConfig.slurp_config_file(config.biblepay_conf)
        network = 'mainnet'
        is_testnet = False
        genesis_hash = u'00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6'
        for line in config_text.split("\n"):
            if line.startswith('testnet=1'):
                network = 'testnet'
                is_testnet = True
                genesis_hash = u'00000bafbc94add76cb75e2ec92894837288a481e5c005f6563d91623bf8bc2c                        '

        creds = BiblepayConfig.get_rpc_creds(config_text, network)
        biblepayd = BiblepayDaemon(**creds)
        assert biblepayd.rpc_command is not None

        assert hasattr(biblepayd, 'rpc_connection')

        # Biblepay testnet block 0 hash == 00000bafbc94add76cb75e2ec92894837288a481e5c005f6563d91                        623bf8bc2c
        # test commands without arguments
        info = biblepayd.rpc_command('getinfo')
        info_keys = [
            'blocks',
            'connections',
            'difficulty',
            'errors',
            'protocolversion',
            'proxy',
            'testnet',
            'timeoffset',
            'version',
        ]
        for key in info_keys:
            assert key in info
        assert info['testnet'] is is_testnet

        # test commands with args
>       assert biblepayd.rpc_command('getblockhash', 0) == genesis_hash
E       assert '122f423f0912...ae2b957d1ac10' == '00000bafbc94a...d91623bf8bc2c'
E         - 122f423f0912850a871c58f1533dd80be62154bb0c56dfb8cb9ae2b957d1ac10
E         + 00000bafbc94add76cb75e2ec92894837288a481e5c005f6563d91623bf8bc2c

test/integration/test_jsonrpc.py:51: AssertionError
============================== 1 failed, 19 passed in 0.50 seconds ==============================

Only 1 test failed out of 20
and it looks like its just a difference in hash numbers for block 0?
for my testnet machines getblockhash 0 returns:
122f423f0912850a871c58f1533dd80be62154bb0c56dfb8cb9ae2b957d1ac10


522
Good news, I think I got a master node working!
(One gotchya was that with AWS (Amazon Web Services) I needed to add inbound rule for port 40001 in the security group of the EC2)

Love your updates to the Masternode guide Rob!
http://wiki.biblepay.org/Create_Masternode

===

Bad news, Im having trouble with Watchman:
https://github.com/biblepay/biblepay/blob/master/BuildBiblePay.txt
https://github.com/biblepay/watchman

Im using Ubuntu 16.04

My watchman.conf:
Quote
# specify path to biblepay.conf or leave blank
# default is the same as BiblepayCore
#biblepay_conf=/home/ubuntu/.biblepaycore/biblepay.conf

# valid options are mainnet, testnet (default=mainnet)
#network=mainnet
network=testnet

# database connection details
db_name=database/watchman.db
db_driver=sqlite

~/.biblepaycore/watchman$ venv/bin/python bin/watchman.py
Code: [Select]
[error]: unable to open database file
Cannot connect to database. Please ensure database service is running and user access is properly configured in 'watchman.conf'.

Source Code:
https://github.com/biblepay/watchman/blob/c6f4cdc831b45019b1f7b3b6ce99100b5fa7086f/lib/init.py#L46

https://github.com/biblepay/watchman/blob/c6f4cdc831b45019b1f7b3b6ce99100b5fa7086f/lib/config.py#L82

https://github.com/biblepay/watchman/blob/c6f4cdc831b45019b1f7b3b6ce99100b5fa7086f/lib/config.py#L37

===

~/.biblepaycore/watchman$ venv/bin/pip list

inflection (0.3.1)
peewee (2.8.3)
pip (9.0.1)
pkg-resources (0.0.0)
py (1.4.31)
pycodestyle (2.3.1)
pytest (3.0.1)
python-bitcoinrpc (1.0)
setuptools (36.6.0)
simplejson (3.8.2)
wheel (0.30.0)

===

So it seems like database file isnt getting created? Im not sure
Looks like peewee library handles the database stuff?

if driver == peewee.SqliteDatabase:
        db_conn = {}

db = driver(db_name, **db_conn)

523
Thank you so much for answering my questions!!!  :D

524
https://www.youtube.com/watch?v=Lybtz7iucVs&t=75s

he did run "masternode genkey" command in the remote Linux wallet, interesting, Im still confused on that

he also sets in vivo.conf
rpcport=10000
masternode=1
bind=PublicIP:Port
masternodeprivkey=asdf

Wallet GUI PROTIP
Settings >> Options >> Wallet >> Show Masternodes Tab >> OK

These Dash Guides look like their masternode genkey is run on local home wallet
https://dashpay.atlassian.net/wiki/spaces/DOC/pages/1867820/TAO+S+SETUP+GUIDE+FOR+DUMMIES+12.1
https://dashpay.atlassian.net/wiki/spaces/DOC/pages/1867877/Start+multiple+masternodes+from+one+wallet+start-many

https://dashpay.atlassian.net/wiki/spaces/DOC/pages/31326216/Simple+MN+on+a+Windows+machine
" a more simple method of running a mastermode directly on a Windows platform, if you have enough confidence that your digital cash is safe. With this method, you will be using your wallet directly as a masternode, keeping it open 24/7."

525
Im stuck installing watchman:
https://github.com/biblepay/biblepay/blob/master/BuildBiblePay.txt
https://github.com/biblepay/watchman

This command I get an error:
venv/bin/python bin/watchman.py

[Errno 111] Connection refused
Cannot connect to biblepayd. Please ensure biblepayd is running and the JSONRPC port is open to watchman.

Pages: 1 ... 28 29 30 31 32 33 34 [35] 36