Author

Topic: HoboNickels - HBN - High Fast Stake - Version 2.0! More Secure, Less Intensive - page 265. (Read 478852 times)

legendary
Activity: 1540
Merit: 1060
May the force bit with you.
Alright I have added an optional new bool to gettransactions.  It will only report the wallet tx when set to true. False is default.  A few examples of difference below.

Default:

16:11:36
16:11:36

gettransaction 15dc50d47ee23548ab7d978fd6e50ddc3c1927062232707c549b1335580e1ef1-000


{
"txid" : "15dc50d47ee23548ab7d978fd6e50ddc3c1927062232707c549b1335580e1ef1",
"version" : 1,
"time" : 1390079479,
"locktime" : 0,
"vin" : [
{
"txid" : "cc1116769e17a4150dea3931fc7f342da3c8142882665676c1d433f1ee1fd6cf",
"vout" : 1,
"scriptSig" : {
"asm" : "3045022065ead98c1bab86275db49ef429a1ce05f57a2baa3dc5e8c80922559299d699820221009 2cdd9d89aaeca3c84e04770c2635511eb96a37c4cae5f16e1d773650e182ef701 02e285d3ed2eb81346a107c6e05f08cf0589ee8c2a48ac907a28f6fb54b1efe393",
"hex" : "483045022065ead98c1bab86275db49ef429a1ce05f57a2baa3dc5e8c80922559299d6998202210 092cdd9d89aaeca3c84e04770c2635511eb96a37c4cae5f16e1d773650e182ef7012102e285d3ed 2eb81346a107c6e05f08cf0589ee8c2a48ac907a28f6fb54b1efe393"
},
"sequence" : 4294967295
}
],
"vout" : [
{
"value" : 0.89900000,
"n" : 0,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 184b6708333a026804b2efd7b895b94dd796e7d9 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a914184b6708333a026804b2efd7b895b94dd796e7d988ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"mhjQqiKuvoEXJuNNKhKj6kNWiyYDGhBxDk"
]
}
},
{
"value" : 0.10000000,
"n" : 1,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 1c3c280c7563d123ef010eb0e11a87f1eeea0921 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a9141c3c280c7563d123ef010eb0e11a87f1eeea092188ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"mi6FHAhRpnbXHn9jdZP5Hya21VLfaM2cRD"
]
}
}
],
"amount" : 0.10000000,
"confirmations" : 0,
"txid" : "15dc50d47ee23548ab7d978fd6e50ddc3c1927062232707c549b1335580e1ef1",
"time" : 1390079480,
"timereceived" : 1390079480,
"details" : [
{
"account" : "",
"address" : "mi6FHAhRpnbXHn9jdZP5Hya21VLfaM2cRD",
"category" : "receive",
"amount" : 0.10000000
}
]
}


With bool set to true.

16:12:20

gettransaction 15dc50d47ee23548ab7d978fd6e50ddc3c1927062232707c549b1335580e1ef1-000 true


16:12:20

{
"amount" : 0.10000000,
"confirmations" : 2,
"blockhash" : "0000600f2c1d952fc5bc89852b31a0c63a689e75f7c04d1c566424b98f8e1731",
"blockindex" : 1,
"blocktime" : 1390079496,
"txid" : "15dc50d47ee23548ab7d978fd6e50ddc3c1927062232707c549b1335580e1ef1",
"time" : 1390079480,
"timereceived" : 1390079480,
"details" : [
{
"account" : "",
"address" : "mi6FHAhRpnbXHn9jdZP5Hya21VLfaM2cRD",
"category" : "receive",
"amount" : 0.10000000
}
]
}


Also I want to bring your attention to two other things.  

First off there is a new subcategory if the category is generate. The subcategory is either work or stake. As seen below. (thanks to jtan189 for this addition)


16:14:15

gettransaction 71a8ed003c7d52ce090179f33d05991c34e918c64edbf5f6352f76f75c412576-000 true


16:14:15

{
"amount" : 5.00000000,
"confirmations" : 209,
"generated" : true,
"blockhash" : "000003e26c84009c8f7b8227bbbb00030c74d4c6b5e4da7e8c66373fac45535a",
"blockindex" : 0,
"blocktime" : 1390071716,
"txid" : "71a8ed003c7d52ce090179f33d05991c34e918c64edbf5f6352f76f75c412576",
"time" : 1390071716,
"timereceived" : 1390071716,
"details" : [
{
"account" : "",
"category" : "generate",
"subcategory" : "work",
"amount" : 5.00000000
}
]
}



Finally, if the wallet you are getting information about is not the default wallet, you need to use gettransaction in conjunction with usewallet example below

With usewallet

16:16:06

usewallet stake gettransaction cc1116769e17a4150dea3931fc7f342da3c8142882665676c1d433f1ee1fd6cf-000 true


16:16:06

{
"amount" : 1.00000000,
"confirmations" : 42,
"blockhash" : "00004189f460ffd5f753e8865ad5e9e5b184227921f1abb115886a106954d767",
"blockindex" : 1,
"blocktime" : 1390078226,
"txid" : "cc1116769e17a4150dea3931fc7f342da3c8142882665676c1d433f1ee1fd6cf",
"time" : 1390078190,
"timereceived" : 1390078190,
"details" : [
{
"account" : "",
"address" : "miau5BFtpU2qNRMMK9UfupjS4LBxGc7d5p",
"category" : "receive",
"amount" : 1.00000000
}
]
}


Same transaction, without usewallet

16:16:48

gettransaction cc1116769e17a4150dea3931fc7f342da3c8142882665676c1d433f1ee1fd6cf-000 true


16:16:48

{
"txid" : "cc1116769e17a4150dea3931fc7f342da3c8142882665676c1d433f1ee1fd6cf",
"blockhash" : "00004189f460ffd5f753e8865ad5e9e5b184227921f1abb115886a106954d767",
"confirmations" : 42,
"txntime" : 1390078178,
"time" : 1390078226
}


I hope this helps.  Do you need a compiled version?  The code is here for now https://github.com/Tranz5/HoboNickels and will be in the offical repo at some later date.
hero member
Activity: 599
Merit: 510
legendary
Activity: 1540
Merit: 1060
May the force bit with you.
why is gettransaction not returning the same json that bitcoin does?


This is a fork of NVC, the gettransaction function was changed and was inherited into HBN.

I can add in a separate function or switch to gettransaction which would make it into a more standard format, if that would be helpful.

Such as gettransactionold or gettransaction [old_bool]

Let me know.

Thanks.
hero member
Activity: 599
Merit: 510
why is gettransaction not returning the same json that bitcoin does?

here is a response

Code:
Received json: {"result":{"txid":"4ef3359815e91ad48caa6e85f65e560f9b7c06542f7b460ffeeadbe0b8de84f7","version":1,"time":1389998983,"locktime":0,"vin":[{"txid":"80960674dd5cfbfdd24351a9c586e8c08f64a4430dba5b2d48a933324d1aa11d","vout":1,"scriptSig":{"asm":"3046022100a2b9d99797de4745c858c08f610fd2adc86ba2e6acc107d6ee131cea6a7937fb0221008fb7376a4079533cdcc51e745e2778f2a8f2aebf4703129a881fbfe63b79b5f601","hex":"493046022100a2b9d99797de4745c858c08f610fd2adc86ba2e6acc107d6ee131cea6a7937fb0221008fb7376a4079533cdcc51e745e2778f2a8f2aebf4703129a881fbfe63b79b5f601"},"sequence":4294967295}],"vout":[{"value":6.63123100,"n":0,"scriptPubKey":{"asm":"OP_DUP OP_HASH160 faa30685cac9f737cbdd82fe27a54b862ea725ac OP_EQUALVERIFY OP_CHECKSIG","hex":"76a914faa30685cac9f737cbdd82fe27a54b862ea725ac88ac","reqSigs":1,"type":"pubkeyhash","addresses":["F5Lkhrnna2HJkq6HCuR6JM7Yzadbr7QXR5"]}},{"value":100.00000000,"n":1,"scriptPubKey":{"asm":"OP_DUP OP_HASH160 42d94bdd7220175ecc12391b876aa006937efbf9 OP_EQUALVERIFY OP_CHECKSIG","hex":"76a91442d94bdd7220175ecc12391b876aa006937efbf988ac","reqSigs":1,"type":"pubkeyhash","addresses":["EnayPNKy9Pg1vSmU2TpQoTcYzjSFGrGi4J"]}}],"amount":100.00000000,"confirmations":45,"blockhash":"000000003ad11894dcd319ef0ed8d02c91a7123e9b22fad5c25d172a62cf9ce9","blockindex":1,"blocktime":1389999071,"txid":"4ef3359815e91ad48caa6e85f65e560f9b7c06542f7b460ffeeadbe0b8de84f7","time":1389999001,"timereceived":1389999001,"details":[{"account":"fa3be01d-b821-4c5c-a4fe-598f14cc0b1a","address":"EnayPNKy9Pg1vSmU2TpQoTcYzjSFGrGi4J","category":"receive","amount":100.00000000}]},"error":null,"id":"1"}

this is not the standard format :-(
legendary
Activity: 1540
Merit: 1060
May the force bit with you.
Checkpoint server upgraded to 1.3.

As of March 15, you are at slight risk of being forked off.
legendary
Activity: 1540
Merit: 1060
May the force bit with you.
legendary
Activity: 1540
Merit: 1060
May the force bit with you.
Looks like cryptopools is back. I never even realized it was down.
hero member
Activity: 518
Merit: 500
Bitrated user: ahmedbodi.
yeah we went down with issues we will be back soon
member
Activity: 121
Merit: 10
HBN <3
Cryptopools wasn't responding to me so I've switched over to Block Factory pool. Some pretty big Hash rates in there Smiley
member
Activity: 100
Merit: 10
Believe it or not this was my first unix system install. Tried an old XP machine as a start.  

Haha, no way :p
So the most advanced coin (for the features) and your first unix system install :p

Anyway, still love this coin, and thanks for the new features everytime. And thank for my OS for the leveldb blockchain Wink
legendary
Activity: 1526
Merit: 1000
the grandpa of cryptos
love new spots where you can buy with HBN!
legendary
Activity: 1540
Merit: 1060
May the force bit with you.
Official HBN repo is now here https://github.com/Crypto-Expert/HoboNickels

https://github.com/Tranz5/HoboNickels will still be used for releases and newest versions.
legendary
Activity: 1540
Merit: 1060
May the force bit with you.
so the new wallet will not work on windows 7 64x?



The version 1.3 32 bit Window's Client (which is all we have) will work on just about any windows system. I have tested it from xp to nt to 7 and I have word that it works on 8 as well.

If I can get a 64 bit client working then it will only work on 7 or 8 64 bit.

64-bit clients work well on XP x64 and 2003 x64 as well.


Didn't even know there was a 64 XP  Tongue
legendary
Activity: 1540
Merit: 1060
May the force bit with you.

The 64 bits folder is empty.

Trying to make from the src/ folder :
Code:
make -f makefile.unix  USE_UPNP=
Building LevelDB ...
/bin/sh: ./build_detect_platform: Permission denied
make[1]: Entering directory `/home/bitcoin/tmp/HoboNickels-1.3.0.0-linux/src/src/leveldb'
Makefile:18: build_config.mk: No such file or directory
make[1]: *** No rule to make target `build_config.mk'.  Stop.
make[1]: Leaving directory `/home/bitcoin/tmp/HoboNickels-1.3.0.0-linux/src/src/leveldb'
make: *** No rule to make target `leveldb/libmemenv.a', needed by `hobonickelsd'.  Stop.

But works after :
Code:
chmod a+x leveldb/build_detect_platform

Everything seems to work, client is resyncing the blockchain.

Yes I will re-up the tar ball once I get the 64 bit complete. I put empty in there as place holder for now..

Believe it or not this was my first unix system install. Tried an old XP machine as a start.  

I'll fix the permissions and re-up it to github
full member
Activity: 238
Merit: 100
so the new wallet will not work on windows 7 64x?



The version 1.3 32 bit Window's Client (which is all we have) will work on just about any windows system. I have tested it from xp to nt to 7 and I have word that it works on 8 as well.

If I can get a 64 bit client working then it will only work on 7 or 8 64 bit.

confirmed working on win 8 x64, fyi
legendary
Activity: 1242
Merit: 1020
No surrender, no retreat, no regret.
so the new wallet will not work on windows 7 64x?



The version 1.3 32 bit Window's Client (which is all we have) will work on just about any windows system. I have tested it from xp to nt to 7 and I have word that it works on 8 as well.

If I can get a 64 bit client working then it will only work on 7 or 8 64 bit.

64-bit clients work well on XP x64 and 2003 x64 as well.
member
Activity: 100
Merit: 10

The 64 bits folder is empty.

Trying to make from the src/ folder :
Code:
make -f makefile.unix  USE_UPNP=
Building LevelDB ...
/bin/sh: ./build_detect_platform: Permission denied
make[1]: Entering directory `/home/bitcoin/tmp/HoboNickels-1.3.0.0-linux/src/src/leveldb'
Makefile:18: build_config.mk: No such file or directory
make[1]: *** No rule to make target `build_config.mk'.  Stop.
make[1]: Leaving directory `/home/bitcoin/tmp/HoboNickels-1.3.0.0-linux/src/src/leveldb'
make: *** No rule to make target `leveldb/libmemenv.a', needed by `hobonickelsd'.  Stop.

But works after :
Code:
chmod a+x leveldb/build_detect_platform

Everything seems to work, client is resyncing the blockchain.
legendary
Activity: 1540
Merit: 1060
May the force bit with you.
so the new wallet will not work on windows 7 64x?



The version 1.3 32 bit Window's Client (which is all we have) will work on just about any windows system. I have tested it from xp to nt to 7 and I have word that it works on 8 as well.

If I can get a 64 bit client working then it will only work on 7 or 8 64 bit.
legendary
Activity: 1148
Merit: 1000
so the new wallet will not work on windows 7 64x?

Jump to: