Skip to content

Commit

Permalink
Fix typos (#149)
Browse files Browse the repository at this point in the history
merged typos fix
  • Loading branch information
shuoer86 authored Nov 30, 2023
1 parent 496456e commit 373ecaa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 373ecaa

Please sign in to comment.