Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #149

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Mostro works with a p2p communication on top of Nostr, Mostro will be the escrow

Mostro will handle Bitcoin using a Lightning Network node, the node will create the hold invoices for sellers and pay the buyers lightning regular invoices.

Mostro will need a private key to be able to create, sign and send events throught Nostr network.
Mostro will need a private key to be able to create, sign and send events through Nostr network.

In the next graphic we can see a very summarized version of how Mostro, the seller and the lightning node interact, a more detailed explanation can be found [here](./FLOW.md):

Expand All @@ -29,7 +29,7 @@ sequenceDiagram
Mostro-->>LN-Node: Give me a hold invoice
LN-Node->>Mostro: Hold invoice
Mostro->>Seller: Please pay this hold invoice
Seller->>LN-Node: Paying throught lightning
Seller->>LN-Node: Paying through lightning
LN-Node-->>Mostro: Payment received
Mostro-->>Seller: Thanks! talk to buyer now
```
Expand Down
2 changes: 1 addition & 1 deletion relay/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ description = "A newly created nostr-rs-relay.\n\nCustomize this with your own i
#engine = "sqlite"

# Directory for SQLite files. Defaults to the current directory. Can
# also be specified (and overriden) with the "--db dirname" command
# also be specified (and overridden) with the "--db dirname" command
# line option.
#data_directory = "."

Expand Down
2 changes: 1 addition & 1 deletion src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async fn job_cancel_orders(client: Client) {
// Check if order is a sell order and Buyer is not sending the invoice for too much time.
// Same if seller is not paying hold invoice
if order.status == "WaitingBuyerInvoice" || order.status == "WaitingPayment" {
// If hold invoice is payed return funds to seller
// If hold invoice is paid return funds to seller
if order.hash.is_some() {
// We return funds to seller
let hash = order.hash.as_ref().unwrap();
Expand Down