Prerequisites

Before setting up a Bahamut node, ensure you have:

Node Setup Process

Clone the Repository

First, clone the Bahamut execution repository:

git clone <https://github.com/fastexlabs/bahamut-execution.git>
cd bahamut-execution

Build the Node

Compile the Bahamut node software:

make geth

Generate Genesis File

Create a genesis.json file with the following configuration:

{
  "config": {
    "chainId": 4090,
    "homesteadBlock": 0,
    "eip150Block": 0,
    "eip155Block": 0,
    "eip158Block": 0,
    "byzantiumBlock": 0,
    "constantinopleBlock": 0,
    "petersburgBlock": 0,
    "istanbulBlock": 0,
    "berlinBlock": 0,
    "londonBlock": 0
  },
  "alloc": {},
  "coinbase": "0x0000000000000000000000000000000000000000",
  "difficulty": "0x20000",
  "extraData": "",
  "gasLimit": "0x2fefd8",
  "nonce": "0x0000000000000042",
  "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "timestamp": "0x00"
}

Modify the nonce to a random value for security purposes

Initialize the Node

Initialize your node with the genesis file:

geth init path/to/genesis.json --datadir path/to/node/data