Author

Topic: [HYP] HyperStake | Generous Reward Staking | Advanced Staking Controls & Wallet - page 158. (Read 679332 times)

legendary
Activity: 1610
Merit: 1000
Crackpot Idealist
I like the pretty purple icon for the explorer client in testnet
legendary
Activity: 882
Merit: 1024
Can't we all just get together to agree that we hate Apple??  Wink

Does it need to be so difficult to get unlimited moves on Candy Crush?
legendary
Activity: 1033
Merit: 1005
Can't we all just get together to agree that we hate Apple??  Wink

I'll agree to that... always laugh when a sheeple tries a real android experience...  Always hear... I can't believe this phone can do (fill in the blank).
legendary
Activity: 1610
Merit: 1000
Crackpot Idealist
Can't we all just get together to agree that we hate Apple??  Wink

YES!
legendary
Activity: 1330
Merit: 1000
Blockchain Developer
Can't we all just get together to agree that we hate Apple??  Wink
legendary
Activity: 882
Merit: 1024
damn racist windoze....

We need lindows, the functionality of Windows using Linux.
legendary
Activity: 1610
Merit: 1000
Crackpot Idealist
legendary
Activity: 1330
Merit: 1000
Blockchain Developer
Ok testers.... here is a binary of my new in wallet block explorer code. At the moment it is RPC only. So if you don't know how to type... don't use it Wink
https://www.dropbox.com/s/vn3mlcc0qnwx7yv/HyperStake-qt-explorer-beta.zip

All of the explorer functions are used by one RPC call "explorer" followed by the appropriate command and parameters.
Commands:
Code:

" example: 'explorer status' this will return the basic status of the explorer\n"
"  example: 'explorer indexall' this will index all tx's found on the chain\n"
" example: 'explorer index 1 5000' this will index blocks 1-5000 (note: it is fine to index the same block more than once)\n"
" example: 'explorer active' this will auto-index each new block (recommended to perform indexall first)\n"
" example: 'explorer deactivate' this will turn off the auto-indexing\n"
"
example: 'explorer address pRbwpBsgumVu2pUA4u2BajC9NU5HEQ7Xuq summary' returns an overview of the address\n"
" example: 'explorer richlist balance 10'' returns the top 10 balances on the richlist\n"
": 'reindex reindex 5000' this will reindex the last 5000 blocks (Not fully functional, still in code and testing phase)\n");

As always I recommend a fresh backup of the wallet.dat and maybe even the chain if you want. The explorer doesn't mess write to either files, but its always good to have a backup.

Startup the client, it will automatically create a file called explorer.dat. Wait to sync up to the highest block. Go into RPC and type "explorer indexall" - this will scan the entire block chain and index everything you need for a fully functional explorer. It takes about 5-10 minutes and sort of makes the client freeze up (like a bootstrap does), so just leave it without clicking around in the client to try and prevent any crashes. Once you are indexed, you will only need to index blocks as they come in in order to keep current with the latest balances of all of the addresses. So the painful 5-10 minute index should only realistically happen once.

After it is done indexing feel free to try any of the features, find bugs, etc. If you want the wallet to automatically index each block that comes in use "explorer active" - this will also persist through restart so you would need to use "explorer deactivate" to get rid of it. You can check explorer status with "explorer status".

Let me know your feedback! There is still much work to do. My reindexing doesn't work right. There is no orphan control. This is just the basics right now Smiley But a good start.
legendary
Activity: 1372
Merit: 1022
Anarchy is not chaos.
I am going to try real hard to give a beta version of my explorer wallet tomorrow. It will be closed source. I am still having trouble getting my reindexing commands to work exactly how I want them too Cry so the beta version might now have functional reindexing.

Just finished moving....

Ok, Not finished, but closer than government work Tongue I'd love to be on the test list. I'm supposed to have good high speed internet hooked up tomorrow. We'll see if CenturyLink can keep an appointment.
legendary
Activity: 1330
Merit: 1000
Blockchain Developer
I am going to try real hard to give a beta version of my explorer wallet tomorrow. It will be closed source. I am still having trouble getting my reindexing commands to work exactly how I want them too Cry so the beta version might now have functional reindexing.
hero member
Activity: 658
Merit: 503
Monero Core Team
I'm quite surprised that other Coins haven't introduced the HoboNickels multi-wallet function but maybe that is a bit too complex for people to clone.
Resource hog.

kinda doubleinterprited. by the way, missed ya here, man)
Yeah, a lot of IRL work an making a living with crypto. I hope to be able to announce huge things in the next months.
legendary
Activity: 882
Merit: 1024
I'm quite surprised that other Coins haven't introduced the HoboNickels multi-wallet function but maybe that is a bit too complex for people to clone.
Resource hog.

kinda doubleinterprited. by the way, missed ya here, man)

I had to read it twice by the way he said it but understand what he means by multiple wallets being a resource hog.
sr. member
Activity: 433
Merit: 250
We are the first to program your future (c)
I'm quite surprised that other Coins haven't introduced the HoboNickels multi-wallet function but maybe that is a bit too complex for people to clone.
Resource hog.

kinda doubleinterprited. by the way, missed ya here, man)
hero member
Activity: 658
Merit: 503
Monero Core Team
I'm quite surprised that other Coins haven't introduced the HoboNickels multi-wallet function but maybe that is a bit too complex for people to clone.
Resource hog.
hero member
Activity: 777
Merit: 1003
Wow man, keep up the great work!

Gonna have to grab some Hyp when I have a bit of extra cash but I have definitely been spreading the word everywhere I can. How many developers work open source and don't get mad when people want to use parts of the code? Very few and I've seen ALOT of Coins. Best be supporting these guys because they are making a difference, the unsung hero's of the Crypto world Smiley

You can grab it cheap on POLO right now. I'm scooping it up.
legendary
Activity: 882
Merit: 1024
yeah that can be a real pain in the ass fo sho

just so I have this clear, it's going to be a hyperstake wallet with the explorer built in?

Yes sir. A real explorer, not a crawler like most other coins have. It is all rpc based at the moment of course, but its more about the code behind it and the DB, not about making it flashy.

Basically how my explorer code functions:

- scan block for all tx's held by the block
- scan each transaction id and create a "transaction summary" for each address in that txid. each txsum has a blockfrom, deposit, withdraw, minted, and mined variables that are filled in.
- insert each txsum object into an array that is tracked per address
- keep a record of every address seen and update its balance, minted total, mined total each time it is seen, store this in Richlist db

These basic things allow for us to query any address, which will bring up the vector of txsums for that address. With this vector you can quickly find a balance by adding all the withdraw and deposits in each txsum, or you can print out a list of transaction id's for that address.

We can also bring up our richlist that is a simple group of every address with its current balance, amount mined, and amount minted.

So my code is built from the ground up, it doesn't even use the txindex=1 functionality. And it provides full address querying without having to dig through the chain each time you query that address. Of course I would love to add even more functionality over time too.

This is made for HYP, but I would like to make it neat on github so other coins can easily cherry pick it if they want. Can you imagine a crypto world where you can get all the info you need from your wallet? No checking websites. If you think your richlist/balances are wrong just hit reindex, or ask a friend what their wallet says. It seems like this is how wallet clients should have been all along.



Wow man, keep up the great work!

Gonna have to grab some Hyp when I have a bit of extra cash but I have definitely been spreading the word everywhere I can. How many developers work open source and don't get mad when people want to use parts of the code? Very few and I've seen ALOT of Coins. Best be supporting these guys because they are making a difference, the unsung hero's of the Crypto world Smiley
legendary
Activity: 1330
Merit: 1000
Blockchain Developer
ok, I follow what you are saying about how your explorer works.. could I trouble you for a laymans explanation on how crawler explorers work?

oh and yeah, CAN'T WAIT TO SEE IT!

crawlers just give you information on a transaction hash or a block hash. They don't keep track of addresses at all. So there is really no way of getting an address balance from a crawler, let alone a rich list. If crawlers and default wallets had this capability, then there wouldn't be much reason for a website with a block explorer, other than for public reference to check you are on the correct chain.

Sipa answers this in depth here if you are interested: http://bitcoin.stackexchange.com/questions/10090/how-to-get-an-addresss-balance-with-the-bitcoin-client/10101#10101
legendary
Activity: 1610
Merit: 1000
Crackpot Idealist
ok, I follow what you are saying about how your explorer works.. could I trouble you for a laymans explanation on how crawler explorers work?

oh and yeah, CAN'T WAIT TO SEE IT!
legendary
Activity: 1330
Merit: 1000
Blockchain Developer
yeah that can be a real pain in the ass fo sho

just so I have this clear, it's going to be a hyperstake wallet with the explorer built in?

Yes sir. A real explorer, not a crawler like most other coins have. It is all rpc based at the moment of course, but its more about the code behind it and the DB, not about making it flashy.

Basically how my explorer code functions:

- scan block for all tx's held by the block
- scan each transaction id and create a "transaction summary" for each address in that txid. each txsum has a blockfrom, deposit, withdraw, minted, and mined variables that are filled in.
- insert each txsum object into an array that is tracked per address
- keep a record of every address seen and update its balance, minted total, mined total each time it is seen, store this in Richlist db

These basic things allow for us to query any address, which will bring up the vector of txsums for that address. With this vector you can quickly find a balance by adding all the withdraw and deposits in each txsum, or you can print out a list of transaction id's for that address.

We can also bring up our richlist that is a simple group of every address with its current balance, amount mined, and amount minted.

So my code is built from the ground up, it doesn't even use the txindex=1 functionality. And it provides full address querying without having to dig through the chain each time you query that address. Of course I would love to add even more functionality over time too.

This is made for HYP, but I would like to make it neat on github so other coins can easily cherry pick it if they want. Can you imagine a crypto world where you can get all the info you need from your wallet? No checking websites. If you think your richlist/balances are wrong just hit reindex, or ask a friend what their wallet says. It seems like this is how wallet clients should have been all along.

legendary
Activity: 1610
Merit: 1000
Crackpot Idealist
yeah that can be a real pain in the ass fo sho

just so I have this clear, it's going to be a hyperstake wallet with the explorer built in?
Jump to: