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

putzlappen

Quote from: alvin on December 20, 2017, 05:54:31 AM
HappyBee Host

Thank you for telling <3

Then i can stopp to trying solve this problem. And can start to find a "better" provider  ;D
Greetings from Germany <3

togoshigekata

I looked up Rob's notes on the winning algorithm

"As far as "luck" of winning the spot, we are using an algorithm where the nodes rank is determined by how close its vin is to the blockhash its voting on, so its really luck."

"The winner is based on the delta between the masternode vin and the blockhash, so that makes the winner random, thats why they can repeat back to back."

What is the masternode VIN?

This kind of reminds me of the Price is Right LOL but going both ways up and down
I think some VINs could have really unlucky spots being sandwhiched between other VINs, does that make sense?


jaapgvk

Quote from: togoshigekata on December 20, 2017, 03:46:50 PM
I looked up Rob's notes on the winning algorithm

"As far as "luck" of winning the spot, we are using an algorithm where the nodes rank is determined by how close its vin is to the blockhash its voting on, so its really luck."

"The winner is based on the delta between the masternode vin and the blockhash, so that makes the winner random, thats why they can repeat back to back."

What is the masternode VIN?

This kind of reminds me of the Price is Right LOL but going both ways up and down
I think some VINs could have really unlucky spots being sandwhiched between other VINs, does that make sense?



Yeah, I'd like to have more insight into the technicalities of this, and how random it really is. Although I must say that my payments seem to be spaced apart quite evenly, although less than expected.

Also, did any of you needed to restart your sanctuary after the last update (1.0.7.1)? I just updated my wallets and started my sanctuary and it just kept saying 'ONLINE'.

togoshigekata

I copied the masternode winners for block 21600 to 22032,

I then pasted it into excel and did Data >> Text to columns and split by Other colon ":"
then I deleted the extra columns (and I only used the first winner in the list)
then I used this excel command in 2nd column to get counts: =COUNTIF(A:A, A1)
then I copy pasted the counts by value to new column and deleted the previous count column
then I removed duplicates in 1st column


B4icq9xMoey9SUN14Zosu5eJyh53GpMuDE 4
B547NvFM2TUeCKxEGcxCxpt8as42pyS4po 20
B5Ac1kfZd47aogmrHKzQM1SR65f2HidfJJ 24
B69kMjn6a8vRH5bmVEdahheK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Qcrp2pHWctSF 6
BLWrBmujyTdv2qxwn8KDFpUFrTvH7AbmD1 13
BN6iwaYKKeqVS3QC9MfCXpH1C7CdsEeQbt 1
BNidV9kWAZECM1sEtg7ZiQyYn2ghDY6mN9 6
BNkdFRRo2Cycyvc37tVaNW4FCiFDrR9QDV 9
BPUJUqxGcqKuJsj7gHATX9BsPCyKJ2rN9w 6
BPXpXpsVAMM2cyzkMsSQ8xVJetbLNX6tQz 8
BQ4kjMzQUEcQdMMpvhDMNt2McfhxzKztRX 16
BQfd2t6iEi49ugwU2LkQBhUS3F2AnsZWYY 15
BQjqyH4QCUhuNmUKw8apELsPqbmEC5jpUV 6
BQKWtsB8L6DxeWbWVQbm86qvpUot1DWSAb 6
BQtrk6tacdZwhftqQTmbBwG84fm2o1YFGo 2
BRUjgRr1nVL4rt8Kks3thFDdsQSLQBCj43 8
BSrFn8zpC48AykVANWcjVEve5tzn8NQNRE 7
BSv2sd6jRutxDsFef7tznJjaNLrdvq3nfS 5



The one thing I dont know, is I dont know how long each of these sanctuaries has been online, sanctuary that just started vs one that has been on the past 2 days, if we had that amount of time enabled data, then we could do the statistical analysis

For instance B8VyJEETEgaYirHeckJANQBd82AKfLkvfe is someone I just helped get setup on Slack a few hours ago and he got 1 payment so far

tiras

Quote from: togoshigekata on December 20, 2017, 05:21:26 PM
I copied the masternode winners for block 21600 to 22032,

I then pasted it into excel and did Data >> Text to columns and split by Other colon ":"
then I deleted the extra columns (and I only used the first winner in the list)
then I used this excel command in 2nd column to get counts: =COUNTIF(A:A, A1)
then I copy pasted the counts by value to new column and deleted the previous count column
then I removed duplicates in 1st column


B4icq9xMoey9SUN14Zosu5eJyh53GpMuDE 4
B547NvFM2TUeCKxEGcxCxpt8as42pyS4po 20
B5Ac1kfZd47aogmrHKzQM1SR65f2HidfJJ 24
B69kMjn6a8vRH5bmVEdahheKqCqHoJejoz 7
B6dcexhthQYGEdQZMiMdLNaFyFAyJEYXYE 9
B6W3399nVAFE9c9AmPBd7qeWL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XpH1C7CdsEeQbt 1
BNidV9kWAZECM1sEtg7ZiQyYn2ghDY6mN9 6
BNkdFRRo2Cycyvc37tVaNW4FCiFDrR9QDV 9
BPUJUqxGcqKuJsj7gHATX9BsPCyKJ2rN9w 6
BPXpXpsVAMM2cyzkMsSQ8xVJetbLNX6tQz 8
BQ4kjMzQUEcQdMMpvhDMNt2McfhxzKztRX 16
BQfd2t6iEi49ugwU2LkQBhUS3F2AnsZWYY 15
BQjqyH4QCUhuNmUKw8apELsPqbmEC5jpUV 6
BQKWtsB8L6DxeWbWVQbm86qvpUot1DWSAb 6
BQtrk6tacdZwhftqQTmbBwG84fm2o1YFGo 2
BRUjgRr1nVL4rt8Kks3thFDdsQSLQBCj43 8
BSrFn8zpC48AykVANWcjVEve5tzn8NQNRE 7
BSv2sd6jRutxDsFef7tznJjaNLrdvq3nfS 5



The one thing I dont know, is I dont know how long each of these sanctuaries has been online, sanctuary that just started vs one that has been on the past 2 days, if we had that amount of time enabled data, then we could do the statistical analysis

For instance B8VyJEETEgaYirHeckJANQBd82AKfLkvfe is someone I just helped get setup on Slack a few hours ago and he got 1 payment so far


wonders of excel analytics :)   
I've been up from day 1 - 8 wins .
   few top  nodes :  24 - 20 .   
to big  of a difference


tiras

Quote from: jaapgvk on December 20, 2017, 05:00:38 PM
Yeah, I'd like to have more insight into the technicalities of this, and how random it really is. Although I must say that my payments seem to be spaced apart quite evenly, although less than expected.

Also, did any of you needed to restart your sanctuary after the last update (1.0.7.1)? I just updated my wallets and started my sanctuary and it just kept saying 'ONLINE'.


Jaapgvk , did you update both sanct MN and controller and it went "enabled"  right away ?

jaapgvk

Quote from: tiras on December 20, 2017, 08:13:17 PM

Jaapgvk , did you update both sanct MN and controller and it went "enabled"  right away ?

It just stayed enabled in the list. After updating both, I restarted (I did the controller first), and after starting the sanctuary wallet it said 'masternode successfully started' after syncing. Didn't have to do anything from the controller wallet.

I've received a payment since then, so I'm guessing all is fine :)

jaapgvk

Quote from: 616westwarmoth on December 21, 2017, 01:21:49 AM
I opened a tech ticket, the bigger issue I think is back-to-back winners, out of 493 block winners (not all actually won BBP mind you), 146 times there was a back-to-back winner.  If there were only 4 enabled MN that would be statistically correct but I think that's what is driving the disparity.

I fully agree, and that's one of the first things I noticed. I wonder how the block distribution was in testnet. I mean, I was there testing, but I didn't look at the winners list to see the actual distribution. I'm gonna look now if I can call the logs on that.

jaapgvk

It seems testnet has been reset unfortunately... Anyone has the winners logs?

togoshigekata

I noticed all the Sanctuaries have fallen into WATCHDOG_EXPIRED state, is something going on? or something we need to do?

jaapgvk

Quote from: togoshigekata on December 21, 2017, 08:53:36 AM
I noticed all the Sanctuaries have fallen into WATCHDOG_EXPIRED state, is something going on? or something we need to do?

Have you reached out to Rob? On my side, it seems that two of the masternodes stayed 'enabled'.

tiras

Quote from: togoshigekata on December 21, 2017, 10:53:21 AM
Weird I think they all went back to ENABLED  ???

they didn't.

as of now only 3 are enabled :

./biblepay-cli masternode list  | grep ENAB
  "4a6d5b74939f29f76030fb80204a244f46b2dbdc13656db05e8372e6bfdee8be-1": "ENABLED",
  "068f3610e03782cae8e55ef4d42d0b4773ae10a26c0a30340a6344e582f6327e-1": "ENABLED",
  "b37da1c9e539dbe7f908d927962b8cb4e7636bfcc42a7ded77ec3fd4cc4bcb56-1": "ENABLED",

could it be something caused by yesterdays update ?

running BBP seems like a FT job

jaapgvk

They're still in 'WATCHDOG EXPIRED' mode on my end (except the three enabled ones).

I used the same commands you used West, and I got approximately the same results:

================================================================= 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.86 seconds =========================================================


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 142, in import_gobject_from_biblepayd
    subobj, created = subclass.get_or_create(object_hash=object_hash, defaults=subdikt)
  File "/root/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/peewee.py", line 4800, in get_or_create
    return query.get(), False
  File "/root/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/peewee.py", line 3090, in get
    return next(clone.execute())
  File "/root/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/peewee.py", line 2267, in next
    obj = self.iterate()
  File "/root/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/peewee.py", line 2253, in iterate
    return self.process_row(row)
  File "/root/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/peewee.py", line 2331, in process_row
    setattr(instance, column, func(row[i]))
  File "/root/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/peewee.py", line 1072, in python_value
    return decimal.Decimal(str(value))
  File "/usr/lib/python2.7/decimal.py", line 547, in __new__
    "Invalid literal for Decimal: %r" % value)
  File "/usr/lib/python2.7/decimal.py", line 3873, in _raise_error
    raise error(explanation)
decimal.InvalidOperation: Invalid literal for Decimal: '203,096'


But I have no idea what I'm doing, lol (but not so lol).

It's indeed a full-time job... But hey, as you said Togo: it's a startup. Let's just hope we get the engine spinning nicely soon...

tiras

Quote from: jaapgvk on December 21, 2017, 11:49:51 AM
They're still in 'WATCHDOG EXPIRED' mode on my end (except the three enabled ones).

I used the same commands you used West, and I got approximately the same results:

================================================================= 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.86 seconds =========================================================


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 142, in import_gobject_from_biblepayd
    subobj, created = subclass.get_or_create(object_hash=object_hash, defaults=subdikt)
  File "/root/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/peewee.py", line 4800, in get_or_create
    return query.get(), False
  File "/root/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/peewee.py", line 3090, in get
    return next(clone.execute())
  File "/root/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/peewee.py", line 2267, in next
    obj = self.iterate()
  File "/root/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/peewee.py", line 2253, in iterate
    return self.process_row(row)
  File "/root/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/peewee.py", line 2331, in process_row
    setattr(instance, column, func(row[i]))
  File "/root/.biblepaycore/watchman/venv/local/lib/python2.7/site-packages/peewee.py", line 1072, in python_value
    return decimal.Decimal(str(value))
  File "/usr/lib/python2.7/decimal.py", line 547, in __new__
    "Invalid literal for Decimal: %r" % value)
  File "/usr/lib/python2.7/decimal.py", line 3873, in _raise_error
    raise error(explanation)
decimal.InvalidOperation: Invalid literal for Decimal: '203,096'


But I have no idea what I'm doing, lol (but not so lol).

It's indeed a full-time job... But hey, as you said Togo: it's a startup. Let's just hope we get the engine spinning nicely soon...


jaapgvk  ,   are trying to say there's an error in python code ?

jaapgvk

Quote from: tiras on December 21, 2017, 11:54:02 AM
jaapgvk  ,   are trying to say there's an error in python code ?

No, I'm just doing the same West did, so we could compare. Maybe someone else can debug it or something.

I don't have enough Linux knowledge to really contribute here, sorry. But if I can do anything to help, just tell me what to do :)