Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

Sentinel v1.3.0 release

Discussion in 'Official Developer Thread' started by nmarley, Nov 16, 2018.

Tags:
  1. nmarley

    nmarley Administrator
    Dash Core Team Moderator

    Joined:
    Jun 28, 2014
    Messages:
    342
    Likes Received:
    413
    Trophy Points:
    133
    Dash Address:
    XdBKajV4g2wnpnAvvnV9dxwypQMfFHYWtp
    Sentinel v1.3.0 is now released! Please update your MNs per the usual method (cd /path/to/sentinel && git pull).

    edit: To clarify, all mainnet and testnet should be updated to this version.

    edit2: Link to Sentinel on GitHub: https://github.com/dashpay/sentinel


    This release includes optimizations to how governance objects are represented in memory and handled in Sentinel, and (along with changes released in DashCore v12.3) allows for a newer, simpler JSON format governance objects.

    If you are a normal user / MNO, you only need to update Sentinel to the `master` branch, version 1.3.0. No further no action is required.

    If you are a developer of special tools like DashCentral or DashNexus, some other action could be required, so please read on.

    Specifically, the multi-dimensional array and un-necessary string field are removed, leaving only the core JSON Object to be parsed and processed. This can affect how 3rd party tools parse governance objects.

    If you have a tool which parses governance object JSON, you should be prepared to parse either the old legacy or new formats. To demonstrate, take the example for a proposal to buy Jack Sparrow a new ship (ahem, Captain Jack Sparrow, sorry...):

    Legacy format:

    Code:
    [
      [
        "proposal",
        {
          "end_epoch": 1547183994,
          "name": "jack-sparrow-new-ship",
          "payment_address": "yYe8KwyaUu5YswSYmB3q3ryx8XTUu9y7Ui",
          "payment_amount": 49,
          "start_epoch": 1521429194,
          "type": 1,
          "url": "https://www.dashcentral.org/black-pearl"
        }
      ]
    ]
    
    New simplified format:
    Code:
    {
      "end_epoch": 1547183994,
      "name": "jack-sparrow-new-ship",
      "payment_address": "yYe8KwyaUu5YswSYmB3q3ryx8XTUu9y7Ui",
      "payment_amount": 49,
      "start_epoch": 1521429194,
      "type": 1,
      "url": "https://www.dashcentral.org/black-pearl"
    }
    

    You'll notice that the gobject type string (1st of inner array) is removed and gobject type is identified by the "type" field. Type 1 = proposal, type 2 = trigger. No other types should exist.

    Sentinel will begin creating superblock trigger objects (candidate superblocks) in this new format. DashCore was updated in v12.3 to support either format, but any tools used to parse this (e.g. possibly DashCentral or DashNexus or other integrations) will need to be updated to support either.

    I am happy to assist if any one needs help, please contact me with any questions.
     
    #1 nmarley, Nov 16, 2018
    Last edited: Nov 16, 2018
    • Like Like x 3
    • Informative Informative x 2
  2. qwizzie

    qwizzie Well-known Member

    Joined:
    Aug 6, 2014
    Messages:
    1,242
    Likes Received:
    648
    Trophy Points:
    183
    Is it okay if last lines after git pull are :

    12 files changed, 84 insertions(+), 136 deletions(-)
    "rename test/unit/{test_dashd_data_shims.py => test_gobject_json.py} (61%)" ?
     
    #2 qwizzie, Nov 16, 2018
    Last edited: Nov 16, 2018
  3. nmarley

    nmarley Administrator
    Dash Core Team Moderator

    Joined:
    Jun 28, 2014
    Messages:
    342
    Likes Received:
    413
    Trophy Points:
    133
    Dash Address:
    XdBKajV4g2wnpnAvvnV9dxwypQMfFHYWtp
    That looks fine. If "git status" only shows changes in the sentinel.conf file then you should be fine.

    Should be at commit 255f7ce. (Check output of "git log --oneline -1".)
     
    • Informative Informative x 3
  4. murkey

    murkey New Member

    Joined:
    Jul 13, 2018
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Do I need to do this even though I run my masternode with a hardware wallet with DMT?
     
  5. nmarley

    nmarley Administrator
    Dash Core Team Moderator

    Joined:
    Jun 28, 2014
    Messages:
    342
    Likes Received:
    413
    Trophy Points:
    133
    Dash Address:
    XdBKajV4g2wnpnAvvnV9dxwypQMfFHYWtp
    Yes
     
    #5 nmarley, Nov 16, 2018
    Last edited: Nov 17, 2018
  6. splawik21

    splawik21 Grizzled Member
    Dash Core Team Foundation Member Dash Support Group

    Joined:
    Apr 8, 2014
    Messages:
    2,107
    Likes Received:
    1,418
    Trophy Points:
    1,283
    All MNs sentinel updated.
     
  7. murkey

    murkey New Member

    Joined:
    Jul 13, 2018
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    I guess I can't update yet with dashman? It says dash version 0.12.3.3 is up to date already? I tried also this cd /path/to/sentinel && git pull but it didnt work either. I am so bad with linux :s
     
  8. qwizzie

    qwizzie Well-known Member

    Joined:
    Aug 6, 2014
    Messages:
    1,242
    Likes Received:
    648
    Trophy Points:
    183
    I dont think dashman can be used to update sentinel.
    As a last resort you can try this in Linux :

    cd .dashcore
    cd sentinel
    git pull

    That is how i normally update sentinel in Linux.
     
    • Like Like x 2
  9. nmarley

    nmarley Administrator
    Dash Core Team Moderator

    Joined:
    Jun 28, 2014
    Messages:
    342
    Likes Received:
    413
    Trophy Points:
    133
    Dash Address:
    XdBKajV4g2wnpnAvvnV9dxwypQMfFHYWtp
    Sorry, can't say about Dashman. That tool isn't supported by me or DCG.

    If you follow the install instructions at https://github.com/dashpay/sentinel#dash-sentinel it should be pretty easy.

    /path/to/sentinel is an example path to wherever you actually installed Sentinel to. The path that @qwizzie suggested is probably correct for Dashman.
     
  10. semajjames

    semajjames Member

    Joined:
    Feb 5, 2015
    Messages:
    143
    Likes Received:
    12
    Trophy Points:
    68
    dashman will install sentinel ,, but how can i tell what sentinel version i am currently running ?
     
  11. nmarley

    nmarley Administrator
    Dash Core Team Moderator

    Joined:
    Jun 28, 2014
    Messages:
    342
    Likes Received:
    413
    Trophy Points:
    133
    Dash Address:
    XdBKajV4g2wnpnAvvnV9dxwypQMfFHYWtp
    Wow, didn't realize this would ever be needed. Change to your directory where sentinel is installed and:

    Code:
    $ grep sentinel_version lib/config.py
    sentinel_version = "1.3.0"
    
    Or:
    Code:
    git log --oneline -1

    Should show something similar to:

    Code:
    255f7ce Merge pull request #59 from dashpay/develop
    
     
    • Like Like x 2
    • Optimistic Optimistic x 1
  12. semajjames

    semajjames Member

    Joined:
    Feb 5, 2015
    Messages:
    143
    Likes Received:
    12
    Trophy Points:
    68
    thats great thanks ,,, I can now confirm that
    cd ~/dashman/ &&./dashman install sentinel
    will update to sentinel 1.3.0
     
  13. Andres Larez

    Andres Larez Member

    Joined:
    Feb 18, 2018
    Messages:
    49
    Likes Received:
    48
    Trophy Points:
    58
    Dash Address:
    XhsCuYrkWRjyFtscCvrFE91nEC2kNuvD9v
    Hi bro! Great work!

    Sorry but what is the main operational funtion of "Sentinel".

    I have full node running but I[m not dev or programer On the other hand I always like to learn new things.

    thnks and keep going!
     
  14. drkrooster

    drkrooster Member

    Joined:
    Dec 26, 2014
    Messages:
    55
    Likes Received:
    26
    Trophy Points:
    58
    keep up all the good works!
    all updated! thanks
     
  15. strophy

    strophy Administrator
    Dash Core Team Dash Support Group Moderator

    Joined:
    Feb 13, 2016
    Messages:
    496
    Likes Received:
    268
    Trophy Points:
    133
    • Useful Useful x 1
  16. t0dd

    t0dd Active Member
    Masternode Owner/Operator

    Joined:
    Mar 21, 2016
    Messages:
    138
    Likes Received:
    123
    Trophy Points:
    93
    Dash Address:
    XyxQq4qgp9B53QWQgSqSxJb4xddhzk5Zhh
    Note: If you are running a masternode using my RPM builds - https://github.com/taw00/dashcore-rpm - you just have to log into your masternode server, `sudo dnf upgrade dashcore-sentinel -y` and ... you're done. Tested with dash core 0.12.3 (current mainnet) and 0.13.0 (testnet). No reboots or restarts required (Sentinel does not run as a daemon). If you have any questions, ping me here or in one of the discord chats.
     
  17. Andres Larez

    Andres Larez Member

    Joined:
    Feb 18, 2018
    Messages:
    49
    Likes Received:
    48
    Trophy Points:
    58
    Dash Address:
    XhsCuYrkWRjyFtscCvrFE91nEC2kNuvD9v

Share This Page