mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 01:43:29 +01:00
Fix typos
This commit is contained in:
parent
000fc0d6e9
commit
118fa1b7d3
2
.github/ISSUE_TEMPLATE/build_problem.md
vendored
2
.github/ISSUE_TEMPLATE/build_problem.md
vendored
@ -46,5 +46,5 @@ Linking: static/dynamic
|
||||
Cross compilation: yes/no
|
||||
Target architecture: (uname -m on Linux if not cross-compiling)
|
||||
|
||||
**Aditional context**
|
||||
**Additional context**
|
||||
Any additional information that seems to be relevant.
|
||||
|
@ -16,7 +16,7 @@ It's the most [secure](https://github.com/Kixunil/security_writings/blob/master/
|
||||
Set `rpccookiefile` option of `bitcoind` to a file within an existing directory which it can access.
|
||||
You can skip it if you're running both daemons under the same user and with the default directories.
|
||||
|
||||
`electrs` will wait for `bitcoind` to sync, however, you will be unabe to use it until the syncing is done.
|
||||
`electrs` will wait for `bitcoind` to sync, however, you will be unable to use it until the syncing is done.
|
||||
|
||||
Example command for running `bitcoind` (assuming same user, default dirs):
|
||||
|
||||
@ -50,10 +50,10 @@ It is a good practice to use these special arguments at the beginning of the com
|
||||
|
||||
**Naming convention**
|
||||
|
||||
For each command line argument an **environment variable** of the same name with `ELECTRS_` prefix, upper case letters and underscores instead of hypens exists
|
||||
For each command line argument an **environment variable** of the same name with `ELECTRS_` prefix, upper case letters and underscores instead of hyphens exists
|
||||
(e.g. you can use `ELECTRS_ELECTRUM_RPC_ADDR` instead of `--electrum-rpc-addr`).
|
||||
|
||||
Similarly, for each such argument an option in config file exists with underscores instead of hypens (e.g. `electrum_rpc_addr`).
|
||||
Similarly, for each such argument an option in config file exists with underscores instead of hyphens (e.g. `electrum_rpc_addr`).
|
||||
|
||||
You need to use `true` value in case of flags (e.g. `timestamp = true`).
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
As of 0.8.8 the `cookie` option is deprecated and it will be removed.
|
||||
A new `auth` option was added.
|
||||
If you don't use the `cookie` otpion, you're not affected and don't need to read this.
|
||||
If you don't use the `cookie` option, you're not affected and don't need to read this.
|
||||
Note that this is different from `cookie_file`.
|
||||
|
||||
## Why?
|
||||
|
@ -59,7 +59,7 @@ Config { network: Bitcoin, db_path: "./db/bitcoin", daemon_dir: "/home/user/.bit
|
||||
You can specify options via command-line parameters, environment variables or using config files.
|
||||
See the documentation above.
|
||||
|
||||
Note that the final DB size should be ~10% of the `blk*.dat` files, but it may increase to ~20% at the end of the inital sync (just before the [full compaction is invoked](https://github.com/facebook/rocksdb/wiki/Manual-Compaction)).
|
||||
Note that the final DB size should be ~10% of the `blk*.dat` files, but it may increase to ~20% at the end of the initial sync (just before the [full compaction is invoked](https://github.com/facebook/rocksdb/wiki/Manual-Compaction)).
|
||||
|
||||
It should take roughly 18 hours to sync and compact the index on an ODROID-HC1 with 8 CPU cores @ 2GHz, 2GB RAM, and an SSD using the command above.
|
||||
|
||||
|
@ -56,7 +56,7 @@ impl Chain {
|
||||
))])
|
||||
}
|
||||
|
||||
/// Load the chain from a collecion of headers, up to the given tip
|
||||
/// Load the chain from a collection of headers, up to the given tip
|
||||
pub(crate) fn load(&mut self, headers: Vec<BlockHeader>, tip: BlockHash) {
|
||||
let genesis_hash = self.headers[0].0;
|
||||
|
||||
|
@ -291,7 +291,7 @@ impl Config {
|
||||
Auth::UserPass(parts[0].to_owned(), parts[1].to_owned())
|
||||
}
|
||||
(Some(_), Some(_)) => {
|
||||
eprintln!("Error: ambigous configuration - auth and cookie_file can't be specified at the same time");
|
||||
eprintln!("Error: ambiguous configuration - auth and cookie_file can't be specified at the same time");
|
||||
std::process::exit(1);
|
||||
}
|
||||
});
|
||||
|
@ -124,7 +124,7 @@ impl HistoryEntry {
|
||||
|
||||
/// ScriptHash subscription status
|
||||
pub struct ScriptHashStatus {
|
||||
scripthash: ScriptHash, // specfic scripthash to be queried
|
||||
scripthash: ScriptHash, // specific scripthash to be queried
|
||||
tip: BlockHash, // used for skipping confirmed entries' sync
|
||||
confirmed: HashMap<BlockHash, Vec<TxEntry>>, // confirmed entries, partitioned per block (may contain stale blocks)
|
||||
mempool: Vec<TxEntry>, // unconfirmed entries
|
||||
|
Loading…
Reference in New Issue
Block a user