Comments (4)
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.
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.
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.
Sounds good: Pool paid 0.007 and wallet kept 0.00138963 per block.
Thank you.
from amoveo.
Related Issues (20)
- move a channel bet to a direct path. HOT 1
- Sync mode that downloads blocks without merkel proofs, and generates the merkel proofs locally. HOT 2
- syncing optimization
- optimizing futarchy for least volatility HOT 4
- probabilistic payment HOT 20
- multisig accounts
- purely functional on-chain smart contracts. HOT 4
- more efficient merkel tree database
- more efficient merkel tree database HOT 2
- hard update 17 changes HOT 1
- accumulator database instead of merkel HOT 1
- Documentation is not Accurate HOT 9
- checkpointing, and syncing blocks in reverse time order HOT 1
- Protocol 'inet_tcp': register/listen error HOT 5
- soft update to enable betting on oracles that do not yet exist. HOT 2
- Cheaper oracles HOT 1
- hard update 25
- Issues with proof that PoS consensus doesn't work HOT 3
- require miners to run full nodes
- partially matching channel offers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amoveo.