Skip to content

Commit

Permalink
Merge pull request #665 from LeoNero/small-improvements
Browse files Browse the repository at this point in the history
Small improvements
  • Loading branch information
TheCharlatan authored Aug 19, 2022
2 parents 4653ae1 + 40ef63e commit d8574a5
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 17 deletions.
4 changes: 2 additions & 2 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Code of Conduct

Out code of conduct is not to have a code of conduct. Restriction is the word
Our code of conduct is not to have a code of conduct. Restriction is the word
of sin: free people writing free code take their own decisions and act in a
way they like; taking all responsibility for the consequences.
way they like, taking all responsibility for the consequences.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ EXPOSE 9735 9981

ENTRYPOINT ["farcasterd"]

CMD ["--data-dir", "/var/lib/farcaster", "-x", "lnpz://0.0.0.0:9981/?api=esb", "--help"]
CMD ["--data-dir", "$DATA_DIR", "-x", "lnpz://0.0.0.0:9981/?api=esb", "--help"]
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@

:warning: **THIS IS EVOLVING, EXPERIMENTAL TECH, USE ON MAINNET AT YOUR OWN RISK**

The **Farcaster Node** is _a collection of microservices for running cross-chain atomic swaps_. Currently the node is focused on Bitcoin-Monero atomic swaps, but is designed to be flexible and integrate new crypto-pairs in the future.
The **Farcaster Node** is _a collection of microservices for running cross-chain atomic swaps_. Currently, the node is focused on Bitcoin-Monero atomic swaps, but it is designed to be flexible and integrate new crypto-pairs in the future.

Microservices currently implemented:

- **farcasterd** (1 instance): the swap manager, it is aware of every initiated swap and interconnects all the other microservices, launches and kills other microservices, exposes an API for the swap-cli client
- **farcasterd** (1 instance): the swap manager, it is aware of every initiated swap and interconnects all the other microservices, launches and kills other microservices, and exposes an API for the swap-cli client
- **swapd** (1 instance per swap): control centre for an individual swap -- keeps track of the swap's state as it runs the protocol's state machine, and orchestrates the swap with peerd for communicating with swap counterparty, walletd for signing, and syncers for blockchain interactions.
- **walletd** (1 instance): where secret keys live, where transactions are signed, coordinates with swapd
- **swap-cli** stateless terminal client (=executes a single command and terminates) that commands farcasterd, for taking or making offers, for example
- **peerd** (1 instance per peer connection): handles the connection to an individual peer,
- **syncerd** (1 instance per blockchain, i.e. one for monero and one for bitcoin): interface for getting updates of the blockchain and for broadcasting transactions
- **databased** (1 instance): interface for storing data persistently across restart
- **grpcd** (1 instance): interface for exposing node interfaces as a gRPC endpoint
- **walletd** (1 instance): where secret keys live, where transactions are signed, and coordinates with swapd.
- **swap-cli**: stateless terminal client (=executes a single command and terminates) that commands farcasterd, for taking or making offers, for example.
- **peerd** (1 instance per peer connection): handles the connection to an individual peer.
- **syncerd** (1 instance per blockchain, i.e. one for monero and one for bitcoin): interface for getting updates of the blockchain and for broadcasting transactions.
- **databased** (1 instance): interface for storing data persistently across restart.
- **grpcd** (1 instance): interface for exposing node interfaces as a gRPC endpoint.

Farcaster Node is build on atomic swap primitives described in the [RFCs](https://github.com/farcaster-project/RFCs) and implemented in [Farcaster Core](https://github.com/farcaster-project/farcaster-core).

Expand Down
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ fn main() -> Result<(), configure_me_codegen::Error> {
generate_to(Bash, app, &name, &outdir)?;
generate_to(PowerShell, app, &name, &outdir)?;
generate_to(Zsh, app, &name, &outdir)?;
generate_to(Fish, app, &name, &outdir)?;
}

configure_me_codegen::build_script_auto()
Expand Down
2 changes: 1 addition & 1 deletion compose/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ EXPOSE 9735 9981

ENTRYPOINT ["farcasterd"]

CMD ["--data-dir", "/var/lib/farcaster", "-x", "lnpz://0.0.0.0:9981/?api=esb", "--help"]
CMD ["--data-dir", "$DATA_DIR", "-x", "lnpz://0.0.0.0:9981/?api=esb", "--help"]
2 changes: 1 addition & 1 deletion src/farcasterd/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub const FARCASTER_CONFIG: &str = "{data_dir}/farcasterd.toml";

/// Farcaster node management daemon; part of Farcaster Node
///
/// The daemon is controlled though ZMQ ctl socket (see `ctl-socket` argument
/// The daemon is controlled through ZMQ ctl socket (see `ctl-socket` argument
/// description)
#[derive(Parser, Clone, PartialEq, Eq, Debug)]
#[clap(name = "farcasterd", bin_name = "farcasterd", author, version)]
Expand Down
2 changes: 1 addition & 1 deletion src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub struct Opts {

/// ZMQ socket name/address for daemon control interface
///
/// Internal interface for control PRC protocol communications. Defaults
/// Internal interface for control RPC protocol communications. Defaults
/// to `ctl.rpc` file inside `--data-dir` directory.
#[clap(
short = 'x',
Expand Down
2 changes: 1 addition & 1 deletion src/peerd/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use internet2::addr::{LocalNode, NodeAddr};
/// `msg.rpc` file inside the data directory from `--data-dir`). It also
/// forwards messages from the same socket to the remote peer.
///
/// The daemon is controlled though ZMQ ctl socket (see `ctl-socket` argument
/// The daemon is controlled through ZMQ ctl socket (see `ctl-socket` argument
/// description)
#[derive(Parser, Clone, PartialEq, Eq, Debug)]
#[clap(
Expand Down
2 changes: 1 addition & 1 deletion src/swapd/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use std::str::FromStr;

/// Swap executor daemon; part of Farcaster Node
///
/// The daemon is controlled though ZMQ ctl socket (see `ctl-socket` argument
/// The daemon is controlled through ZMQ ctl socket (see `ctl-socket` argument
/// description)
#[derive(Parser, Clone, PartialEq, Eq, Debug)]
#[clap(name = "swapd", bin_name = "swapd", author, version)]
Expand Down
2 changes: 1 addition & 1 deletion src/syncerd/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use std::str::FromStr;

/// Syncer blockchain management daemon; part of Farcaster Node
///
/// The daemon is controlled though ZMQ ctl socket (see `ctl-socket` argument
/// The daemon is controlled through ZMQ ctl socket (see `ctl-socket` argument
/// description)
#[derive(Parser, Clone, PartialEq, Eq, Debug)]
#[clap(name = "syncerd", bin_name = "syncerd", author, version)]
Expand Down

0 comments on commit d8574a5

Please sign in to comment.