Some clarity on Resource Credits and Voting Mana

Image Source


I realized that the release of HF20 is causing a lot of confusion and I decided to write this short post, to answer more officially a couple of questions that keep on coming up:


Resource Credits & Mana

Besides Resource Credits, one of the new features of HF20 is Voting Mana.

While I personally thought that the implementation would be less dramatic, it seems that due to different reasons, the default votingpower is deprecated for the time being and can't be trusted.

That's why you have to look into voting mana instead.

One way to do that is by going to https://steemd.com/@yourusername.

There you will see something like this:



Two mana bars

The top one is for resource credits, meaning everything you do on Steem costs RCs and if you have 0% or less, then you're not able to do anything.

The easiest way to think about this is to equate to the way bandwidth used to work on the STEEM blockchain. You should see during the next days this percentage increase after the blockchain has completely balanced out.

Now, the lower manabar is the voting power replacement, normally referred to as VP.

The easiest way to think of MANA is to imagine it being attached to the STEEM tokens themselves. In other words, STEEM now has a power level. Everytime you powerup STEEM tokens, they begin their vested life with full MANA, and when you upvote, downvote, etc, it gets spent.

Just like it worked under HF19 the MANA of the STEEM tokens is replenished when it's not being used.

What should you be doing?

I know there are many steemians right now frustrated with the deployment of HF20 and I don't blame anybody. However, please take into consideration that even though no one is saying having a dialogue about it is not OK, it's more important to think of ways we could be having a constructive one with the development team of Steemit Inc.

As with many things, the biggest virtue is patience. Already many accounts have had their negative RC balances reverted and their accounts are able to transact, but this is going to take a little longer for it to be completely done across the whole blockchain.

From @steemitblog:

Equal Impact
No one account is depriving another of their voting power or gaining an unfair advantage. During the implementation of the Resource Credit system, voting power was rescaled and no scaling factor was added to ensure a consistent user experience. This was an oversight on our part and for this we apologize. Again, this behavior is a one time issue that will resolve itself over the next 5 days.

Are you a JS developer?

As many other developers I spent most of my last days deep into code.

And if you are a JS developer, then this might be something that you could put to good use on your dapp or project.

I've gone ahead and implemented the two new RC/MANA bars into dsteem. Now they haven't been merged yet, but of course that's no problem.

I've created a temporary fork and implemented it there.

https://github.com/therealwolf42/dsteem/tree/mana_rewrite

You can also use the package: npm i dsteem-hf20

The implementation is very easy:

# Without API call
let account = (await get_accounts(['therealwolf]))[0]
let { current_mana, max_mana, percentage } = client.rc.calculateVPMana(account)

#or directly with API call
let { current_mana, max_mana, percentage } = client.rc.getRCMana('therealwolf')

Explanation: You can use the first method if you have fetched one or multiple accounts already and want to use the existing objects, without having to make an api call for each one of them.

Disclaimer: The method names and other things could change in the final dsteem version, so please keep that in mind.

And if you prefer to use Python, then go ahead and use Beem, since @holger80 has been busy like a beee(m) ;)

So with that said:

I hope you found this post and maybe even the dsteem modification useful.

Keep on steemin',
@therealwolf


Witness Infrastructure:
Primary Node: 128GB - v0.20.3 | Backup Node: 64GB - v0.20.3 | Seed Node: 64GB - v0.20.3

Projects I've developed on Steem:
Smartsteem.com > Investment & Promotion Service on Steem
Steem Chat-Wallet & Witness Essentials > Github: https://github.com/therealwolf42

If you believe that I'm of value for Steem, then please vote for me as witness. You can also set me as a proxy and I'll vote on great witnesses for you.

H2
H3
H4
Upload from PC
Video gallery
3 columns
2 columns
1 column
38 Comments