GithubHelp home page GithubHelp logo

Comments (4)

zack-bitcoin avatar zack-bitcoin commented on May 23, 2024

Hi Mandelhof,

These are great questions. It brings me joy that you are learning so much about Amoveo.

api:account is for looking up the data in the blockchain associated with an account. If you don't tell it which account to look up, it looks up your account by default.
###(4)
Here is where this account datastructure is defined: https://github.com/zack-bitcoin/amoveo/blob/master/apps/ae_core/src/records.hrl#L51

The part that you covered up in red is the root hash of the merkle tree containing the bets you made in the oracles. Since there are no oracles right now, it is the merkle root of an empty tree.

The typical way to look up your balance at the erlang prompt is like this: api:balance(). It is explained here: https://github.com/zack-bitcoin/amoveo/blob/master/docs/api/commands_accounts.md

Yes, I made the block reward much smaller this time.
I am thinking we should keep it very small until the GPUs get built, but maybe 0.007 is a little too small. It almost seems like an error.

Loading a private key into your wallet is a risky thing to do.
The recommended way to move tokens from one wallet to another is by generating a new account in the new wallet, and making a transaction on the blockchain to move your money from the old account to the new one.

###(1)
The instructions are here: https://github.com/zack-bitcoin/amoveo/blob/master/docs/api/securing_keys.md

###(2)
Your keys.db file contains an encrypted copy of your private key. You decrypt it with a password. it is stored in _build/prod/rel/ae_core/keys/keys.db
You can save a copy of this file if you want to use the same account on a different computer.

###(3)
That is how erlang binaries are displayed.
The erlang propt has a command for displaying the entire binary: rp(Binary).

from amoveo.

Mandelhoff avatar Mandelhoff commented on May 23, 2024

When I mined a block, the full node api:balance() increased by 138963. Is that the wallet balance in the full node or something else?

I'm confused that the node received 138963 and the miner wallet was paid 0.007, but maybe that's not apples-to-apples.

Thank you - I'll play around with the keys.db. Sounds like backing it up is a good idea. Would a restore just be copying the keys.db back up to a fresh node and squashing the default one?

from amoveo.

zack-bitcoin avatar zack-bitcoin commented on May 23, 2024

It is like bitcoin. There are 100 000 000 satoshis in one Veo.
So 0.007 Veo = 700 000 Satoshis.

The erlang node doesn't know anything about Veo, it only counts in Satoshis.
The javascript light wallet converts to Veo so that it is easier to read.

The mining pool is keeping some of the reward.
This is important because if 2 people find a block at the same time, the mining pool ends up paying both of them.

to restore a keys.db file, first make sure that the node is turned off. Then replace the file. Then turn it on.

from amoveo.

Mandelhoff avatar Mandelhoff commented on May 23, 2024

Sounds good: Pool paid 0.007 and wallet kept 0.00138963 per block.
Thank you.

from amoveo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.