Skip to content

Commit

Permalink
doc: add docs on fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSulpiride committed Aug 29, 2024
1 parent 922f879 commit 828d084
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions docs/p2p.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,44 @@ Example:
```
./skandha node --redirectRpc --executor.bundlingMode manual --dataDir ./db2 --api.port 14339 --p2p.port 4339 --p2p.enrPort 4339 --p2p.bootEnrs [enr]
```

## Use Fastlane relayer

Use this config values to switch to fastlane relayer which protects bundles from MEV on Polygon

```json
{
"entryPoints": [
"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
],
"relayers": [
"0xYOUR_PRIVATE_KEY"
],
"rpcEndpoint": "https://polygon.blockpi.network/v1/rpc/public ",
"canonicalMempoolId": "QmRJ1EPhmRDb8SKrPLRXcUBi2weUN8VJ8X9zUtXByC7eJg",
"canonicalEntryPoint": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"relayingMode": "fastlane",
"conditionalTransactions": true,
"rpcEndpointSubmit": "https://polygon-test-rpc.fastlane.xyz",
"fastlaneValidators": [
"0x127685D6dD6683085Da4B6a041eFcef1681E5C9C"
],
"bundleInterval": 2500
}

```

`canonicalMempoolId` - is the mempool id to which you want to connect\
`canonicalEntryPoint` - entry point that corresponds to canonical mempool id\
`rpcEndpointSubmit` - rpc endpoint provided by fastlane that supports `pfl_sendRawTransactionConditional` rpc method\
`fastlaneValidators` - addresses of validators that support `pfl_sendRawTransactionConditional` rpc method\
`bundleInterval` - this should be about the same value as block time on Polygon. On each interval Skandha will check if the current proposer matches `fastlaneValidators`, and if so submits the bundle


### Notes of Fastlane

Right now a very limited set of relayers are participating in this, so in order to submit bundles Skandha has to wait for the right validator's turn, which usually takes hours and may take even longer.

### The list of fastlane validators

- `0x127685D6dD6683085Da4B6a041eFcef1681E5C9C`

0 comments on commit 828d084

Please sign in to comment.