Jump to content

NEWS
Tranz

Preparing HBN v1.4

Recommended Posts

Expected release is Q2 '14

 

fWalletOnly bool added to gettransaction. Backward compatibility for older scripts:

https://github.com/Tranz5/HoboNickels/commit/47d697441ef88f320d065fc41fa1f1148333f7ab

 

Combined Balance part of RPC listwallets command:

https://github.com/Tranz5/HoboNickels/commit/e789ce3d639a3116e70e49281a02bf7329a0ad1b

 

Changes for Qt5 plus new boost, QRCode and static exe:

https://github.com/Tranz5/HoboNickels/commit/1f6fd6262c69d37da2a6602a1d6d5b66139c82d6

Share this post


Link to post
Share on other sites

Excited for the new wallet release! I have really been enjoying 1.3 so far. Let me know if there is anything I can do to assist in the process.  Maybe we can figure out a way to have an exciting wallet release event?

I have a couple ideas I will run past you as we get closer.

Share this post


Link to post
Share on other sites

For the first launch of the HBN daemon, it suggests a new pair of rpc login/pass.

The default login is "bitcoinrpc".

It may be much better to have something without bitcoin :;

 

~$ ./hobonickelsd 
Error: To use HoboNickelsd, you must set a rpcpassword in the configuration file:
 /home/hbn/.HoboNickels/HoboNickels.conf
It is recommended you use the following random password:
rpcuser=bitcoinrpc
rpcpassword=3FpAajjEFxax7SrAnHQws8Q49eak9BLg34i26LoLfkmW
(you do not need to remember this password)
If the file does not exist, create it with owner-readable-only file permissions.

 

Share this post


Link to post
Share on other sites

 

For the first launch of the HBN daemon, it suggests a new pair of rpc login/pass.

The default login is "bitcoinrpc".

It may be much better to have something without bitcoin :;

~$ ./hobonickelsd 
Error: To use HoboNickelsd, you must set a rpcpassword in the configuration file:
 /home/hbn/.HoboNickels/HoboNickels.conf
It is recommended you use the following random password:
rpcuser=bitcoinrpc
rpcpassword=3FpAajjEFxax7SrAnHQws8Q49eak9BLg34i26LoLfkmW
(you do not need to remember this password)
If the file does not exist, create it with owner-readable-only file permissions.
 

 

Thanks, I have made this change.

https://github.com/Tranz5/HoboNickels/commit/12fe9bb982f11104e1c88e755f76f74526ca8cfc

Share this post


Link to post
Share on other sites

DNS Seed Node added(Thank you Meska), 4 hard coded seed added. IRC turned off by default.

https://github.com/Tranz5/HoboNickels/commit/9546af3219c1d2377b31324a4584ad2e65cb317b

 

Version displayed on start up splash screen.

https://github.com/Tranz5/HoboNickels/commit/dea1630960d16794e4aecdbae728e5e624252460

Share this post


Link to post
Share on other sites

Total Balance reflected in QT. I was going to do Total Stake and Total Unconfirmed, but I didn't want it to get too confusing or cluttered.

https://github.com/Tranz5/HoboNickels/commit/38051a9e39abf67ad1c3bcb603b7fa2a735bf420

https://github.com/Tranz5/HoboNickels/commit/4f76536229c6620b9b5edeff05118e017a025bf9

 

2960idz.png

Share this post


Link to post
Share on other sites

Just want to caution anyone who maybe compiling/using some of the code I push to Tranz5 github repo. The current change above crashes when you solo against it. Didn't realize that till tonight. I will issue a fix once I find the bug, or revert it, if it takes too much time.

 

Edit: It was just one of my compile settings. The code works fine

 

Also looking at the issue with the current Bitcoin attack, here seems to be the quick fix solution

 

https://github.com/bitcoin/bitcoin/commit/19e5b9d2dfcac4efadba636745485d9660fb1abe

https://github.com/bitcoin/bitcoin/commit/ea062655e045b68d568d2faf7abe946deb00d46d

https://github.com/laanwj/bitcoin/commit/e7d1e1eb4e8b584adfdc44bac6f52938e134b8a4

 

Essentially wait for 1 confirmation before allowing your change(the remainder of a block after you spend it), to be spendable again.  The quick block time and checkpoint server do offer protection against this type of attack. But I will see how these changes can be fit into HBN as well.

Share this post


Link to post
Share on other sites

Group of changes tonight

 

Added RPC command getsubsidy: This will return the current PoW Block Reward. This is mostly useless for HBN, as the block is hard coded to 5. But could be useful for scripts. Or if we decided to decrease the PoW Block Reward in the future

 

 

 

22:11:22

 

getsubsidy

 

22:11:22

 

5000000

 

Added start up switch -mininput: This will set the min block size of coins that can be sent from your wallet. So for example if you set it to 5 all blocks of 5- would be untouched. If you only had block sizes of 5 in your wallet, you would get insufficient funds error.  It is set to .001 by default. Set -mininput=0 to turn off.

 

Changed RPC command getmininginfo: Added PoS to the difficulty, changed how PoS difficulty is calculated and returned.

 

 

22:04:10

{
"blocks" : 593843,
"currentblocksize" : 1000,
"currentblocktx" : 0,
"difficulty" : {
"proof-of-work" : 3.33815311,
"proof-of-stake" : 0.00390625,
"search-interval" : 0
},
"errors" : "",
"netmhashps" : 434.46237683,
"netstakeweight" : 188583.01413681,
"generate" : false,
"genproclimit" : -1,
"hashespersec" : 0,
"stakeweight" : {
"minimum" : 0,
"maximum" : 0,
"combined" : 0,
"stakeinterest" : 1000000
},
"pooledtx" : 0,
"testnet" : false
}

 

Changed RPC command getinfo: Added PoS difficulty and mininput

 

 

 

22:05:41

{
"version" : "v1.3.1.0-gc722bd8-hobo",
"protocolversion" : 70003,
"blocks" : 593851,
"timeoffset" : -20,
"moneysupply" : 3008593.49230800,
"connections" : 23,
"wallets" : 3,
"proxy" : "",
"ip" : ".",
"difficulty" : {
"proof-of-work" : 3.36782466,
"proof-of-stake" : 0.00390625
},
"testnet" : false,
"paytxfee" : 0.00000000,
"mininput" : 0.00100000,
"errors" : ""
}

 

Added function GetWeight to kernel.cpp:

Added function AvailableCoinsMinConf to wallet.cpp

Added function SelectCoinsSimple to wallet.cpp

Changed function GetStakeWeight to wallet.cpp

 

https://github.com/Tranz5/HoboNickels/commit/ecab8a1fc7770bcfa81d866754649bff78e2c82e

Share this post


Link to post
Share on other sites

"Changed RPC command getinfo: Added PoS difficulty and mininput"

Arf, I think this is going to break a lot of scrypt...

I'm not ready to have an "array" of difficulty for this command... 

I'm still using the getdifficulty if I want the difficulty "more clear", but for the getinfo (used by a lot of scripts), usually, it's not prepared for an array.

 

Really good news for the mininput, it will avoid spam. 

 

For the getsubsidy, why it's not "5" but "5000000" ? (Not tested yet, maybe it's a wrong copy/paste?)

Share this post


Link to post
Share on other sites

Good feedback thanks.

 

I will revert the getinfo to show only the PoW difficulty for now. I'll leave it in the getmininginfo, unless others request change.

 

I have updated getsubsidy to use ValueFromAmount

 

 

10:39:16

 

getsubsidy

 

10:39:16

 

5.00000000

Share this post


Link to post
Share on other sites

Good feedback thanks.

 

I will revert the getinfo to show only the PoW difficulty for now. I'll leave it in the getmininginfo, unless others request change.

 

I have updated getsubsidy to use ValueFromAmount

 

Thank for the revert, I was maybe thinking about a bool for the getinfo, with "more infos".

For me the "worst" for the "pow diff" is just the array, so maybe another name from the output can be "better" (Maybe other feedbacks will be better).

But a :

getinfo 

and a :

getinfo <extand>

who return:

{

"version" : "v1.3.1.0-gc722bd8-hobo",

"protocolversion" : 70003,

"blocks" : 593851,

"timeoffset" : -20,

"moneysupply" : 3008593.49230800,

"connections" : 23,

"wallets" : 3,

"proxy" : "",

"ip" : ".",

"difficulty" : 3.36782466,

"proof-of-stake-difficulty" : 0.00390625

"walletversion": XXX

"testnet" : false,

"paytxfee" : 0.00000000,

"mininput" : 0.00100000,

"errors" : ""

}

 

I've added walletversion too. But maybe it's a bad idea to go this way, no others coins have this "extand/expand" and bool for the "getinfo" who is basic.

Share this post


Link to post
Share on other sites

Tonight's commit

 

Minor optimization to kernel and main.

Added optional true/false fExtended bool to getinfo. False by default. Also added back in walletversion.

 

 

20:38:34

 

getinfo

 

20:38:34

 

{
"version" : "v1.3.1.0-gc722bd8-hobo",
"protocolversion" : 70003,
"blocks" : 824,
"timeoffset" : 0,
"moneysupply" : 3200.66633600,
"connections" : 0,
"wallets" : 4,
"walletversion" : 60000,
"proxy" : "",
"ip" : "0.0.0.0",
"difficulty" : 0.00001818,
"testnet" : true,
"paytxfee" : 0.00000000,
"mininput" : 0.00100000,
"errors" : ""
}


 

20:39:46

 

getinfo true

 

20:39:46

 

{
"version" : "v1.3.1.0-gc722bd8-hobo",
"protocolversion" : 70003,
"blocks" : 824,
"timeoffset" : 0,
"moneysupply" : 3200.66633600,
"connections" : 0,
"wallets" : 4,
"walletversion" : 60000,
"proxy" : "",
"ip" : "0.0.0.0",
"difficulty" : {
"proof-of-work" : 0.00001818,
"proof-of-stake" : 0.00024414
},
"testnet" : true,
"paytxfee" : 0.00000000,
"mininput" : 0.00100000,
"errors" : ""
}

 

 

Changed to total balance as part of listwallets

 

 

20:40:24

 

listwallets

 

20:40:24

 

{
"" : {
"balance" : 85.00000000,
"encrypted" : false,
"walletversion" : 60000,
"keypoolsize" : 103,
"keypoololdest" : 1392348531,
"newmint" : 25.00000000,
"stake" : 0.00000000
},
"enc" : {
"balance" : 4.99800000,
"encrypted" : true,
"unlocked_until" : 0,
"unlocked_until_pretty" : "Locked",
"walletversion" : 60000,
"keypoolsize" : 100,
"keypoololdest" : 1391823420,
"newmint" : 0.00000000,
"stake" : 0.00000000
},
"olddef" : {
"balance" : 427.75474900,
"encrypted" : false,
"walletversion" : 60000,
"keypoolsize" : 101,
"keypoololdest" : 1390071520,
"newmint" : 0.00000000,
"stake" : 0.00000000
},
"stake" : {
"balance" : 298.89700000,
"encrypted" : false,
"walletversion" : 60000,
"keypoolsize" : 101,
"keypoololdest" : 1390078137,
"newmint" : 0.00000000,
"stake" : 0.00000000
},
"total" : {
"balance" : 816.64974900,
"newmint" : 25.00000000,
"stake" : 0.00000000
}
}

Changed getsubsidy to decimal.

 

 

20:41:47

 

getsubsidy

20:41:47

 

5.00000000

 

 

https://github.com/Tranz5/HoboNickels/commit/e71c66707daa4cfc183961460ee891e6622d3d8e

Share this post


Link to post
Share on other sites

Added new RPC Command backupallwallets:
https://github.com/Tranz5/HoboNickels/commit/353612b45353a73637ee8cd040fe985245712cd7

Best practice is to insert USB drive(drive F in this example), create a directory called HBN_Wallets_Backup.

Then call rpc command:

backupallwallets f:/HBN_Wallest_Backup/

 

This will flush out all data to the wallets, then copy them to the thumb drive. You should then use the safety remove hardware, then pull out your USB drive.

You can also pre-pend something to the wallets being backed up, by adding a file name to the backupallwallets command

backupallwallets f:/HBN_Wallest_Backup/Feb_17_

This will create files as such

Feb_17_wallet.dat
Feb_17_wallet-enc.dat
Feb_17_wallet-olddef.dat
Feb_17_wallet-stake.dat

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using CRYPTOCURRENCYTALK.COM, you agree to our Terms of Use.