Loading proofofbrain-blog...

POB to Ecency: Days 15,16,17 and 18

I've finally got the voting right.

image.png

That is to say, I get the right numbers but data needs to be fetched from five sources. The display is rather slow right now, though. To fix that, I'll have to move the "fetching" parts to another place. I've moved price fetching from the area of the vote button component to the server. I made it do the fetching in the button control to understand the shape of the data I was dealing with.

Building the server and client leaves me with something that looks a lot like @ecency.

image.png

When I run the server at the command line, I get the following output:

> Started on port 3000
Api auth couldn't be create!
(node:10195) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Api auth couldn't be create!

So, to calculate existing rewards on the posts my next stuff is :

  • Migrate the loading code of tokenConfig and tokenInfo to another location and use that copy.
  • Migrate the loading of the account elsewhere, to when the login happens.
  • Migrate the fetch of the post data to routines when we get the post or the post list.
  • Pass the adjusted dollar value to the right control.

The wallet needs to be finished in terms of actually making the wallet capable of doing things other than display the amounts.

Thanks to @ecency and @proofofbrainio for helping to make this happen!


H2
H3
H4
3 columns
2 columns
1 column
21 Comments