From 0c30279a1e9b5e8fa9ce8cbed77215cb77ea5225 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 1 Nov 2019 12:18:32 +0100 Subject: [PATCH] remove 'other' category --- _config.yml | 5 --- docs/{_doc => _legacy}/Disclaimer.md | 0 .../Ethereum-Specification.md | 0 docs/{_doc => _legacy}/Ethereum-on-Android.md | 0 docs/_legacy/Gas-Price-Oracle.md | 44 +++++++++++++++++++ .../Metrics-and-Monitoring.md | 0 docs/{_doc => _legacy}/Private-network.md | 0 docs/_legacy/sending-ether.md | 33 ++++++++++++++ 8 files changed, 77 insertions(+), 5 deletions(-) rename docs/{_doc => _legacy}/Disclaimer.md (100%) rename docs/{_doc => _legacy}/Ethereum-Specification.md (100%) rename docs/{_doc => _legacy}/Ethereum-on-Android.md (100%) create mode 100644 docs/_legacy/Gas-Price-Oracle.md rename docs/{_doc => _legacy}/Metrics-and-Monitoring.md (100%) rename docs/{_doc => _legacy}/Private-network.md (100%) create mode 100644 docs/_legacy/sending-ether.md diff --git a/_config.yml b/_config.yml index 1d4bbbf660..06f1eecbeb 100644 --- a/_config.yml +++ b/_config.yml @@ -76,8 +76,3 @@ collections: caption: Whisper sidebar_index: 9 frontpage: _whisper/Whisper-Overview.md - doc: - output: true - permalink: docs/:collection/:slug - caption: Other - sidebar_index: 9 diff --git a/docs/_doc/Disclaimer.md b/docs/_legacy/Disclaimer.md similarity index 100% rename from docs/_doc/Disclaimer.md rename to docs/_legacy/Disclaimer.md diff --git a/docs/_doc/Ethereum-Specification.md b/docs/_legacy/Ethereum-Specification.md similarity index 100% rename from docs/_doc/Ethereum-Specification.md rename to docs/_legacy/Ethereum-Specification.md diff --git a/docs/_doc/Ethereum-on-Android.md b/docs/_legacy/Ethereum-on-Android.md similarity index 100% rename from docs/_doc/Ethereum-on-Android.md rename to docs/_legacy/Ethereum-on-Android.md diff --git a/docs/_legacy/Gas-Price-Oracle.md b/docs/_legacy/Gas-Price-Oracle.md new file mode 100644 index 0000000000..918ae563c9 --- /dev/null +++ b/docs/_legacy/Gas-Price-Oracle.md @@ -0,0 +1,44 @@ +--- +title: Gas price oracle +--- + +The gas price oracle is a helper function of the Geth client that tries to find an +appropriate default gas price when sending transactions. It can be parametrized with the +following command line options: + +- `gpomin`: lower limit of suggested gas price. This should be set at least as high as the + `gasprice` setting usually used by miners so that your transactions will not be rejected + automatically because of a too low price. + +- `gpomax`: higher limit of suggested gas price. During load peaks when there is a + competition between transactions to get into the blocks, the price needs to be limited, + otherwise the oracle would eventually try to overbid everyone else at any price. + +- `gpofull`: a block is considered "full" when a certain percentage of the block gas limit + (specified in percents) is used up by transactions. If a block is not "full", that means + that a transaction could have been accepted even with a minimal price offered. + +- `gpobasedown`: an exponential ratio (specified in `1/1000ths`) by which the base price + decreases when the lowest acceptable price of the last block is below the last base + price. + +- `gpobaseup`: an exponential ratio (specified in `1/1000ths`) by which the base price + increases when the lowest acceptable price of the last block is over the last base + price. + +- `gpobasecf`: a correction factor (specified in percents) of the base price. The + suggested price is the corrected base price, limited by `gpomin` and `gpomax`. + +The lowest acceptable price is defined as a price that could have been enough to insert a +transaction into a certain block. Although this value varies slightly with the gas used by +the particular transaction, it is aproximated as follows: if the block is full, it is the +lowest transaction gas price found in that block. If the block is not full, it equals to +gpomin. + +The base price is a moving value that is adjusted from block to block, up if it was lower +than the lowest acceptable price, down otherwise. Note that there is a slight amount of +randomness added to the correction factors so that your client will not behave absolutely +predictable on the market. + +If you want to specify a constant for the default gas price and not use the oracle, set +both `gpomin` and `gpomax` to the same value. diff --git a/docs/_doc/Metrics-and-Monitoring.md b/docs/_legacy/Metrics-and-Monitoring.md similarity index 100% rename from docs/_doc/Metrics-and-Monitoring.md rename to docs/_legacy/Metrics-and-Monitoring.md diff --git a/docs/_doc/Private-network.md b/docs/_legacy/Private-network.md similarity index 100% rename from docs/_doc/Private-network.md rename to docs/_legacy/Private-network.md diff --git a/docs/_legacy/sending-ether.md b/docs/_legacy/sending-ether.md new file mode 100644 index 0000000000..c083bb85b8 --- /dev/null +++ b/docs/_legacy/sending-ether.md @@ -0,0 +1,33 @@ +--- +title: Sending ether +--- + +The basic way of sending a simple transaction of ether with the console is as follows: +```js +> eth.sendTransaction({from:sender, to:receiver, value: amount}) +``` + +Using the built-in JavaScript, you can easily set variables to hold these values. For example: + +```js +> var sender = eth.accounts[0]; +> var receiver = eth.accounts[1]; +> var amount = web3.toWei(0.01, "ether") +``` + +Alternatively, you can compose a transaction in a single line with: + +```js +> eth.sendTransaction({from:eth.coinbase, to:eth.accounts[1], value: web3.toWei(0.05, "ether")}) +Please unlock account d1ade25ccd3d550a7eb532ac759cac7be09c2719. +Passphrase: +Account is now unlocked for this session. +'0xeeb66b211e7d9be55232ed70c2ebb1bcc5d5fd9ed01d876fac5cff45b5bf8bf4' +``` + +The resulting transaction is `0xeeb66b211e7d9be55232ed70c2ebb1bcc5d5fd9ed01d876fac5cff45b5bf8bf4` + +If the password was incorrect you will instead receive an error: +```js +error: could not unlock sender account +``` \ No newline at end of file