Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

Tao suggested I post here... 0.05 BTC bounty offered for resolution to my masternode issue !

Discussion in 'Off Topic' started by MoreBloodWine, Jul 19, 2015.

  1. MoreBloodWine

    MoreBloodWine New Member

    Joined:
    Jul 19, 2015
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    Ok, so here's my issue which is taken from the DASH bitcointalk thread: topic=421615.msg11913461#msg11913461

    GorillaBucks.conf
    masternode.conf
     
  2. TaoOfSatoshi

    TaoOfSatoshi Grizzled Member

    Joined:
    Jul 15, 2014
    Messages:
    2,719
    Likes Received:
    2,613
    Trophy Points:
    1,183
    Cool, I'm glad you posted here. Maybe someone with more expertise than myself can help you. You have been respectful in your postings, and it is Dash related tech.

    UdjinM6, could you perhaps spare a couple of minutes to help? It looks good on us to be mindful of our crypto brethren.

    Cheers!
     
  3. MoreBloodWine

    MoreBloodWine New Member

    Joined:
    Jul 19, 2015
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    From what I can tell this seems to be the tree...

    DASH > BananaBits > BUCKS

    But ya, from what little I have found, even if the tree of growth is wrong in the MN sense. Best I can tell is that BUCKS whole masternode code belongs to DASH or most of it anyway.

    But ya, would love to get this solved.

    As previously stated using your guides, I can start two remote nodes with two local wallets. Just having the issue of trying to combine the two locals to one local using your option B.

    That said, regardless of options used because I have done A as well, masternode outputs always displays fine but masternode list-conf never reads / outputs the data in the masternode.conf file.

    FWIW, Tao asked this in the DASH thread to which I replied. Yes I am on Windows with local and yes I am sure masternode.conf is a CONF type file,
     
  4. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    One thing i can see is it should be (per Udjin's correction on another post and as I've learned it from other people..):
    rpcport=11839
     
  5. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,637
    Likes Received:
    3,536
    Trophy Points:
    1,183
    Welcome,

    Now that's a proper place. ;)

    Had a quick look at gorilla code and your config is ok (even though there is no donation support in this coin but it will be just ignored by code).
    There's an obvious bug in gorilla code, ask your developer to fix it - wallet should actually read config file (which it doesn't now).

    PS. btw looks like it's also a crave clone somehow

    PPS. drop it and switch to Dash :cool:

    EDIT: and no, there was no such bug in Dash
     
    • Like Like x 4
  6. MoreBloodWine

    MoreBloodWine New Member

    Joined:
    Jul 19, 2015
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    AFAIK, that doesn't matter as the masternode.conf file is what's currently having the issue. As the RPC info isn't even really used I feel confident in saying the rpcport=x isn't even needed. The reason I use port is because the default is something like 36482 and I want 11839.
     
  7. MoreBloodWine

    MoreBloodWine New Member

    Joined:
    Jul 19, 2015
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    Can't tell him to fix something if I don't know what's wrong, as for donation support. If it's not already included then chances are it never will be unless it's somehow "easily added" then MAYBE I could do it myself lol.
     
  8. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,637
    Likes Received:
    3,536
    Trophy Points:
    1,183
    Err.. I might not said it clear enough though I tried. Anyway...
    It's not a donation support, wallet should basically read config file to be able to display anything.
    Like this:
    Code:
    // parse masternode.conf
    std::string strErr;
    if(!masternodeConfig.read(strErr)) {
        fprintf(stderr,"Error reading masternode configuration file: %s\n", strErr.c_str());
        return false;
    }
    https://github.com/dashpay/dash/blob/master/src/dashd.cpp#L89-L94
     
  9. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    So this coin is a clone from DASH and CRAVE?
     
  10. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,637
    Likes Received:
    3,536
    Trophy Points:
    1,183
    crave is a clone of dash, and this coin is a clone of crave and shadow
     
    • Like Like x 2
  11. MoreBloodWine

    MoreBloodWine New Member

    Joined:
    Jul 19, 2015
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    I understood it's not a donation type wallet.

    I was referring to the "should read but doesn't now" comment which I suspect is what you just posted above should otherwise solve. That being said, if IGotSpots is otherwise hesitant for some reason or "too busy". Could said changed be made by someone like me should full instructions be given / found somewhere ? I ask this because I know how and have already compiled d files from the main github files.

    Assuming it wouldnt somehow invalidate the client from working on the BUCKS chain.
     
  12. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    Hey bro, switch to Dash, we have an amazing dev team and a wonderful, fun, dynamic, feisty, and sometimes pissy community here. So why don't you join us and drop the gorilla? lol

    :D:rolleyes::D:oops::D
     
    • Like Like x 1
  13. MoreBloodWine

    MoreBloodWine New Member

    Joined:
    Jul 19, 2015
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    Right now one DASH MN is at a cost of ~11BTC so ya... that wont be happening for a loooooooooooooooooooooong while if at all.
     
  14. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,961
    Likes Received:
    6,735
    Trophy Points:
    1,283
    http://www.gorillastake.com/gorillabands/
    Quote
    The longer a node is online, verifying blocks and transactions, the more BUCKS it will be eligible for. GorillaBands are rewarded for this work and time by receiving 50% of the staked coins across the network. This ensures the coins used for setup are replaced as soon as possible without creating additional inflation or incentives that are too low to make it worth it. At only 5000 GorillaBucks per GorillaBand, setting one up will be accessible to nearly anyone who wants one

    Setting up your first GorillaBand only takes a few clicks. Rather than use confusing, often failing, masternode systems that require manual configuration, GorillaBucks has integrated the one-click GorillaBand setup for ease of use!

    1 click MN
    good luck with that security :eek:
     
    • Like Like x 2
  15. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    I see... thanks for the info :)
     
  16. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    Well... I hope 1 DASH MN soon will be == 20 BTC...
     
    • Like Like x 2
  17. MoreBloodWine

    MoreBloodWine New Member

    Joined:
    Jul 19, 2015
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    One reason I'm trying to do it manually. As for the file UdjinM6 linked, dashd.cpp... I had a look at the src files for GB and it goes from eckey.h to hash.cpp.... not a single gorillabucksd.cpp file lol so ya, looks like I will need IGS to help if he's feeling generous.
     
  18. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,637
    Likes Received:
    3,536
    Trophy Points:
    1,183
    Ah, ok.

    As for code changes - sure it can be done. Easy way: compare bitcoind.cpp in gorilla and dashd.cpp in Dash, add missing
    Code:
    #include "masternodeconfig.h"
    and the code above to corresponding places and recompile. 2 minutes to fix :)
     
  19. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    MoreBloodWine - see how awesome Udjin is? Don't waste your time, invest in excellent devs... that error is just nothing... if a dev can't read code like reading a soft porn novel... he can't code.

    But Dash devs do read code like that!! :D:D:D
     
    • Like Like x 1
  20. MoreBloodWine

    MoreBloodWine New Member

    Joined:
    Jul 19, 2015
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    You litterally made me LOL

    if your gonna do porn novels may as well go full hog and FWIW, I do dabble in DASH. That being besides the point, I'd never for a long while any way even be able to afford a single DASH MN at it's current costs. At least this way with me getting dirty in BUCKS code it is more of a prep to really get in to DASH.

    Also, ignore my last reply about no gorillabucksd.cpp file as Udjin pointed out it's bitcoind.cpp

    So with that said: UdjinM6 --- While I am confident enough to compare dashd.cpp and bitcoind.cpp and adding #include "masternodeconfig.h" to what looks like the right spot. The rest of what you said may be where I fail as you said and I quote...

    and the code above to corresponding places and recompile. 2 minutes to fix :)

    I wouldnt know what those corresponding places are.
     
    • Like Like x 1
  21. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,961
    Likes Received:
    6,735
    Trophy Points:
    1,283
    i am not sure about that soft porn reference .... ;)
    Masternodes /Investment need security !
    it will not help you if that guy promises great returns and cheap coins, if you will eventually lose all due to no/or crap security hence a hack attack
     
  22. TaoOfSatoshi

    TaoOfSatoshi Grizzled Member

    Joined:
    Jul 15, 2014
    Messages:
    2,719
    Likes Received:
    2,613
    Trophy Points:
    1,183
    Are you sure you don't want to join the Dash Twitter PR Initiative? We could use another promoter with your skillz... :rolleyes::D:cool:
     
  23. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    Haha... the answer is still No, thanks you! :)
    But I would love to learn to write a soft pr0n novel for Dash .. lol
     
    • Like Like x 1
  24. TaoOfSatoshi

    TaoOfSatoshi Grizzled Member

    Joined:
    Jul 15, 2014
    Messages:
    2,719
    Likes Received:
    2,613
    Trophy Points:
    1,183
    • Like Like x 1
  25. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,637
    Likes Received:
    3,536
    Trophy Points:
    1,183
    "include ... " goes here https://github.com/iGotSpots/GorillaBucks/blob/master/src/bitcoind.cpp#L10

    And that is a good place to insert code quoted above https://github.com/iGotSpots/GorillaBucks/blob/master/src/bitcoind.cpp#L65
     
  26. MoreBloodWine

    MoreBloodWine New Member

    Joined:
    Jul 19, 2015
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    Seconded for sure and I am confident in adding #include "masternodeconfig.h"

    I am not confident in adding the other code to the corresponding places lol
     
  27. MoreBloodWine

    MoreBloodWine New Member

    Joined:
    Jul 19, 2015
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    So both sets of code only have one include and can go at the top of the file where the #include "masternodeconfig.h" should be anyway ?

    Also the not posting / quoting links thing is somewhat annoying lol

    Edit: I also just had a shit moment, I have to compile qt lol
     
  28. TaoOfSatoshi

    TaoOfSatoshi Grizzled Member

    Joined:
    Jul 15, 2014
    Messages:
    2,719
    Likes Received:
    2,613
    Trophy Points:
    1,183
    It's a rite of passage. We all have to go through it... Stick around, it will go away soon enough!
     
  29. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,637
    Likes Received:
    3,536
    Trophy Points:
    1,183
    Code:
    diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp
    index da5490a..a61fd83 100644
    --- a/src/bitcoind.cpp
    +++ b/src/bitcoind.cpp
    @@ -7,6 +7,7 @@
    #include "rpcclient.h"
    #include "init.h"
    #include <boost/algorithm/string/predicate.hpp>
    +#include "masternodeconfig.h"
    
    void WaitForShutdown(boost::thread_group* threadGroup)
    {
    @@ -63,6 +64,13 @@ bool AppInit(int argc, char* argv[])
                 return false;
             }
    
    +        // parse masternode.conf
    +        std::string strErr;
    +        if(!masternodeConfig.read(strErr)) {
    +            fprintf(stderr,"Error reading masternode configuration file: %s\n", strErr.c_str());
    +            return false;
    +        }
    +
             // Command-line RPC
             for (int i = 1; i < argc; i++)
                 if (!IsSwitchChar(argv[i][0]) && !boost::algorithm::istarts_with(argv[i], "GorillaBucks:"))
    That's anti-spam protection - new accounts can't post links. Will "fix" itself after a while.
     
  30. MoreBloodWine

    MoreBloodWine New Member

    Joined:
    Jul 19, 2015
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    Now your confusin me lol... @@ -63,6 +64,13 @@ bool isn't even in dashd.cpp or bitcoind.cpp from GorillaBucks... so while yes I know with 100% certainty where #include "masternodeconfig.h" goes... I'm completely dumbfounded on where to put this...

    1. // parse masternode.conf
    2. std::string strErr;
    3. if(!masternodeConfig.read(strErr)) {
    4. fprintf(stderr,"Error reading masternode configuration file: %s\n", strErr.c_str());
    5. return false;
    6. }

    In the bitcoind.cpp file from GorillaBucks.

    Also, // Command-line RPC is already on line 66 in bitcoind.cpp... so hope u see my confusion to some extent.