Biomech
Legendary
Offline
Activity: 1372
Merit: 1022
Anarchy is not chaos.
|
|
May 30, 2015, 11:54:28 PM |
|
That's not new. HYP was forked from TRK. What you do is make sure that the port and rpcport are set to different ports in your hyperstake.conf and truckcoin.conf files. That is in the wiki, I'm pretty sure EDIT: Ya ninja'd me Yeah, thanks for the tip, i was starting to think i'd have to abandon one I found trk port, but not hyp. As long as it's not conflicting with something else, it really don't matter. 22, 587, and about five others are system ports and illegal for RPC or P2P, but that's about it. I often run multiple instances and just set whatever port I have available so that they don't conflict. I don't remember the ports that were supposed to be assigned to HYP, but it practically don't matter as long as they're not the same as something else you have running.
|
|
|
|
Crestington
Legendary
Offline
Activity: 882
Merit: 1024
|
|
May 30, 2015, 11:57:36 PM |
|
Do you guys have some useful guide on creating a bootstrap.dat?
I could host one for you guys if you want, I did it before where I had loaded up my Blockchain as a zip file and it worked but that isn't really the proper way to do it.
|
|
|
|
Biomech
Legendary
Offline
Activity: 1372
Merit: 1022
Anarchy is not chaos.
|
|
May 31, 2015, 12:03:19 AM |
|
Do you guys have some useful guide on creating a bootstrap.dat?
I could host one for you guys if you want, I did it before where I had loaded up my Blockchain as a zip file and it worked but that isn't really the proper way to do it.
I'm not home right now, but I have a script for it. Basically it's a script that gathers all the BLK000*.dat files in order and put's 'em together, renames the output bootstrap.dat, and then copies it to your specified directory for download. Can be set as a cron, so it stays up to date. I've only used it once, I usually just do it manually. (cat blk0000 blk0001 blk000* ... > bootstap.dat
|
|
|
|
billotronic
Legendary
Offline
Activity: 1610
Merit: 1000
Crackpot Idealist
|
|
May 31, 2015, 12:16:27 AM |
|
yeah what bio said! and I am almost 100% certain you should close the client before doing so. (I always do)
best part is with hyp since the blockchain is still small you can actually just rename blk0001.dat to bootstrap.dat or cat it like bio said if you wanted to make it nice and automated.
that is a feature press should put into his explorer.
|
|
|
|
Crestington
Legendary
Offline
Activity: 882
Merit: 1024
|
|
May 31, 2015, 12:47:18 AM |
|
Do you guys have some useful guide on creating a bootstrap.dat?
I could host one for you guys if you want, I did it before where I had loaded up my Blockchain as a zip file and it worked but that isn't really the proper way to do it.
I'm not home right now, but I have a script for it. Basically it's a script that gathers all the BLK000*.dat files in order and put's 'em together, renames the output bootstrap.dat, and then copies it to your specified directory for download. Can be set as a cron, so it stays up to date. I've only used it once, I usually just do it manually. (cat blk0000 blk0001 blk000* ... > bootstap.dat I was more interested in the process of making the bootstrap itself, not just for HyperStake. I want to be able to add it to the list of guides and stuff I have here https://forum.gethashing.com/t/how-to-clone-a-coin-links-and-resources/3833Are you able to link me to an already easy to go through guide if you have it or walk me through the script?
|
|
|
|
presstab (OP)
Legendary
Offline
Activity: 1330
Merit: 1000
Blockchain Developer
|
|
May 31, 2015, 01:50:17 AM |
|
Do you guys have some useful guide on creating a bootstrap.dat?
I could host one for you guys if you want, I did it before where I had loaded up my Blockchain as a zip file and it worked but that isn't really the proper way to do it.
I'm not home right now, but I have a script for it. Basically it's a script that gathers all the BLK000*.dat files in order and put's 'em together, renames the output bootstrap.dat, and then copies it to your specified directory for download. Can be set as a cron, so it stays up to date. I've only used it once, I usually just do it manually. (cat blk0000 blk0001 blk000* ... > bootstap.dat I was more interested in the process of making the bootstrap itself, not just for HyperStake. I want to be able to add it to the list of guides and stuff I have here https://forum.gethashing.com/t/how-to-clone-a-coin-links-and-resources/3833Are you able to link me to an already easy to go through guide if you have it or walk me through the script? Rename blk0001.dat to bootstrap.dat. that's the magic secret.
|
|
|
|
Crestington
Legendary
Offline
Activity: 882
Merit: 1024
|
|
May 31, 2015, 01:51:33 AM |
|
Do you guys have some useful guide on creating a bootstrap.dat?
I could host one for you guys if you want, I did it before where I had loaded up my Blockchain as a zip file and it worked but that isn't really the proper way to do it.
I'm not home right now, but I have a script for it. Basically it's a script that gathers all the BLK000*.dat files in order and put's 'em together, renames the output bootstrap.dat, and then copies it to your specified directory for download. Can be set as a cron, so it stays up to date. I've only used it once, I usually just do it manually. (cat blk0000 blk0001 blk000* ... > bootstap.dat I was more interested in the process of making the bootstrap itself, not just for HyperStake. I want to be able to add it to the list of guides and stuff I have here https://forum.gethashing.com/t/how-to-clone-a-coin-links-and-resources/3833Are you able to link me to an already easy to go through guide if you have it or walk me through the script? Rename blk0001.dat to bootstrap.dat. that's the magic secret. But how then do you allow other peers to connect to it and then use it as the bootstrap?
|
|
|
|
billotronic
Legendary
Offline
Activity: 1610
Merit: 1000
Crackpot Idealist
|
|
May 31, 2015, 01:55:15 AM |
|
Do you guys have some useful guide on creating a bootstrap.dat?
I could host one for you guys if you want, I did it before where I had loaded up my Blockchain as a zip file and it worked but that isn't really the proper way to do it.
I'm not home right now, but I have a script for it. Basically it's a script that gathers all the BLK000*.dat files in order and put's 'em together, renames the output bootstrap.dat, and then copies it to your specified directory for download. Can be set as a cron, so it stays up to date. I've only used it once, I usually just do it manually. (cat blk0000 blk0001 blk000* ... > bootstap.dat I was more interested in the process of making the bootstrap itself, not just for HyperStake. I want to be able to add it to the list of guides and stuff I have here https://forum.gethashing.com/t/how-to-clone-a-coin-links-and-resources/3833Are you able to link me to an already easy to go through guide if you have it or walk me through the script? Rename blk0001.dat to bootstrap.dat. that's the magic secret. But how then do you allow other peers to connect to it and then use it as the bootstrap? you upload it somewhere and let them download it. thats it.
|
|
|
|
Crestington
Legendary
Offline
Activity: 882
Merit: 1024
|
|
May 31, 2015, 01:56:34 AM |
|
Do you guys have some useful guide on creating a bootstrap.dat?
I could host one for you guys if you want, I did it before where I had loaded up my Blockchain as a zip file and it worked but that isn't really the proper way to do it.
I'm not home right now, but I have a script for it. Basically it's a script that gathers all the BLK000*.dat files in order and put's 'em together, renames the output bootstrap.dat, and then copies it to your specified directory for download. Can be set as a cron, so it stays up to date. I've only used it once, I usually just do it manually. (cat blk0000 blk0001 blk000* ... > bootstap.dat I was more interested in the process of making the bootstrap itself, not just for HyperStake. I want to be able to add it to the list of guides and stuff I have here https://forum.gethashing.com/t/how-to-clone-a-coin-links-and-resources/3833Are you able to link me to an already easy to go through guide if you have it or walk me through the script? Rename blk0001.dat to bootstrap.dat. that's the magic secret. But how then do you allow other peers to connect to it and then use it as the bootstrap? you upload it somewhere and let them download it. thats it. Just the bootstrap.dat? What is done to use it?
|
|
|
|
billotronic
Legendary
Offline
Activity: 1610
Merit: 1000
Crackpot Idealist
|
|
May 31, 2015, 02:27:20 AM |
|
the end user would put the bootstrap into their datadir, start the client, the client processes the blocks, you save a shit ton of time vs syncing a virgin client. it is not the fastest thing in the world, but i would guess of the time savings at the very least 75%. also, super sexy pi client just cooked for distro from sluppy can be found on the release page check it out.
|
|
|
|
Crestington
Legendary
Offline
Activity: 882
Merit: 1024
|
|
May 31, 2015, 04:15:38 AM |
|
the end user would put the bootstrap into their datadir, start the client, the client processes the blocks, you save a shit ton of time vs syncing a virgin client. it is not the fastest thing in the world, but i would guess of the time savings at the very least 75%. also, super sexy pi client just cooked for distro from sluppy can be found on the release page check it out. So you put it in the same directory as the Blockchain? If you have an existing Blockchain do you delete that? What is the reason of renaming it bootstrap.dat? Would it just not be easier to replace the Blockchain with another one and not have to rename it? Congrats on the new pi client!!!
|
|
|
|
Biomech
Legendary
Offline
Activity: 1372
Merit: 1022
Anarchy is not chaos.
|
|
May 31, 2015, 04:51:28 AM |
|
yeah what bio said! and I am almost 100% certain you should close the client before doing so. (I always do)
best part is with hyp since the blockchain is still small you can actually just rename blk0001.dat to bootstrap.dat or cat it like bio said if you wanted to make it nice and automated.
that is a feature press should put into his explorer.
https://ecua.mobi/how-to-create-bootstrap-dat/There ya go. I used it once, but didn't have a download directory setup. I do now, and once GMC is fixed, I'll be using this script to maintain a constantly updated bootstrap. Might do the same for all the coins I collect Though that would require a bigger server than I have right now. At any rate, the script works with minimal modification, or you can just do it manually. You MIGHT need to run this as root or chown your blocks directory to make it work, though.
|
|
|
|
Biomech
Legendary
Offline
Activity: 1372
Merit: 1022
Anarchy is not chaos.
|
|
May 31, 2015, 04:57:39 AM |
|
the end user would put the bootstrap into their datadir, start the client, the client processes the blocks, you save a shit ton of time vs syncing a virgin client. it is not the fastest thing in the world, but i would guess of the time savings at the very least 75%. also, super sexy pi client just cooked for distro from sluppy can be found on the release page check it out. So you put it in the same directory as the Blockchain? If you have an existing Blockchain do you delete that? What is the reason of renaming it bootstrap.dat? Would it just not be easier to replace the Blockchain with another one and not have to rename it? Congrats on the new pi client!!!Yes, you put it in (in this case) .hyperstake (or the windows/Mac equivalent) and then delete everything but wallet.dat, hyperstake.conf and bootstrap.dat The reason for renaming it is that the core code looks for bootstrap.dat to import a static blockchain, and it imports the whole freaking thing before indexing it. That saves a shitload of time. The reason for not just copying the whole .hyperstake (or whatever coin) data directory is that the data may be corrupt, have transactions only specific to your wallet, etc. And of course, the size. Everything that is needed for the client to extract all that information is in the blk000* files. There are several of them as the blockchain grows, so if you're making a bootstrap AND there is more than one, you need to combine them in serial order. It's easy to do, and it will save you endless headaches when synching a new install or recovering a messed up wallet install. Another thing I do, and highly suggest if you're not running on a Pi or something tiny like that is add txindex=1 to your configuration file. This pulls ALL the blockchain data, like a block explorer. so you can pull up the data from any valid block in the chain in your own client, not just the ones you had a transaction in
|
|
|
|
Crestington
Legendary
Offline
Activity: 882
Merit: 1024
|
|
May 31, 2015, 05:15:59 AM |
|
yeah what bio said! and I am almost 100% certain you should close the client before doing so. (I always do)
best part is with hyp since the blockchain is still small you can actually just rename blk0001.dat to bootstrap.dat or cat it like bio said if you wanted to make it nice and automated.
that is a feature press should put into his explorer.
https://ecua.mobi/how-to-create-bootstrap-dat/There ya go. I used it once, but didn't have a download directory setup. I do now, and once GMC is fixed, I'll be using this script to maintain a constantly updated bootstrap. Might do the same for all the coins I collect Though that would require a bigger server than I have right now. At any rate, the script works with minimal modification, or you can just do it manually. You MIGHT need to run this as root or chown your blocks directory to make it work, though. Perfect! That's exactly what I was looking for, I knew you guys were holding out on me Tip you guys come CON for the help?
|
|
|
|
AngelLox
|
|
May 31, 2015, 09:58:57 AM Last edit: May 31, 2015, 03:35:01 PM by AngelLox |
|
So um i'm no expert or anything like that, but i'm curious, why are bootstraps used? Couldn't one just paste the blk000 and blkindex into his client data folder?
|
|
|
|
Biomech
Legendary
Offline
Activity: 1372
Merit: 1022
Anarchy is not chaos.
|
|
May 31, 2015, 07:29:05 PM |
|
So um i'm no expert or anything like that, but i'm curious, why are bootstraps used? Couldn't one just paste the blk000 and blkindex into his client data folder?
Mainly for speed, and also for the new guy trying to get synched. Good developers try to maintain an up to date bootstrap so that new people don't have to wait (sometimes literally) days to get up to speed. For instance, bitcoin synching from a bootstrap takes around seven hours. Synching from the network can take over a week. On smaller coins, it's more a convenience. Also, it is possible for your local copy of the block chain to get corrupted, and a bootstrap will get you to a reasonable block height and allow those last few blocks to synch fast, instead of starting from zero.
|
|
|
|
AngelLox
|
|
May 31, 2015, 07:37:14 PM Last edit: May 31, 2015, 08:54:21 PM by AngelLox |
|
Okay, one last thing. I have setted up a .conf like the guide says, am i missing anything? rpcuser=hyperstakecrew rpcpassword=Whops rpcallowip=127.0.0.1 gen=0 server=1 daemon=1 listen=1
|
|
|
|
Biomech
Legendary
Offline
Activity: 1372
Merit: 1022
Anarchy is not chaos.
|
|
May 31, 2015, 07:46:07 PM |
|
Okay, one last thing. I have setted up a .conf like the guide says, am i missing anything? rpcuser=hyperstakecrew rpcpassword=AUeYFdcL6r8YXurj23xLbIAVsxVflN7R rpcallowip=127.0.0.1 gen=0 server=1 daemon=1 listen=1 You might want to define the ports (rpcport=<port> , port=<port> ) but if it's not giving any conflicts, that's totally optional. I always run txindex=1 so I have ALL block transaction data, but that too is optional. It looks fine.
|
|
|
|
Crestington
Legendary
Offline
Activity: 882
Merit: 1024
|
|
May 31, 2015, 07:49:30 PM |
|
Okay, one last thing. I have setted up a .conf like the guide says, am i missing anything? rpcuser=hyperstakecrew rpcpassword=AUeYFdcL6r8YXurj23xLbIAVsxVflN7R rpcallowip=127.0.0.1 gen=0 server=1 daemon=1 listen=1 If that is the password you are using, you should change it and not be posting it publically, it doesn't pose an immediate risk but better to be safe than sorry.
|
|
|
|
AngelLox
|
|
May 31, 2015, 08:55:28 PM Last edit: May 31, 2015, 09:19:11 PM by AngelLox |
|
Changed it, thanks for the heads up. I also lost the Hyperstake folder somehow, now i have to reimport the bootstrap all over. I hope it gets it done during the night.
|
|
|
|
|