Skip to content

Commit

Permalink
typos-Update spec.md
Browse files Browse the repository at this point in the history
  • Loading branch information
romashka-btc authored Dec 19, 2024
1 parent 52ff8be commit ca4e05b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mempool/cat/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ message WantTx {
}
```

Both `SeenTx` and `WantTx` contain the sha256 hash of the raw transaction bytes. `SeenTx` also contains an optional `p2p.ID` that corresponds to the peer that the node recieved the tx from. The only validation for both is that the byte slice of the `tx_key` MUST have a length of 32.
Both `SeenTx` and `WantTx` contain the sha256 hash of the raw transaction bytes. `SeenTx` also contains an optional `p2p.ID` that corresponds to the peer that the node received the tx from. The only validation for both is that the byte slice of the `tx_key` MUST have a length of 32.

Both messages are sent across a new channel with the ID: `byte(0x31)`. This enables cross compatibility as discussed in greater detail below.

Expand Down Expand Up @@ -75,7 +75,7 @@ Transaction pools are solely run in-memory; thus when a node stops, all transact

Upon receiving a `Txs` message:

- Check whether it is in reponse to a request or simply an unsolicited broadcast
- Check whether it is in response to a request or simply an unsolicited broadcast
- Validate the tx against current resources and the applications `CheckTx`
- If rejected or evicted, mark accordingly
- If successful, send a `SeenTx` message to all connected peers excluding the original sender. If it was from an initial broadcast, the `SeenTx` should populate the `From` field with the `p2p.ID` of the recipient else if it is in response to a request `From` should remain empty.
Expand Down

0 comments on commit ca4e05b

Please sign in to comment.