# BP Node settings

## BP Node settings

Adjusting the setting information operation is needed for the driving environment in order for BP Node to operate mutually.\
Please refer the below steps to proceed the settings.

### PATH settings

Set the PATH by entering the container Shell.

```bash
root@4e60bc34a625:/omnione-testnet# source /etc/profile
```

### Checking the script file

Use ls command to check the BP Node executable script file.

```bash
root@4e60bc34a625:/omnione-testnet# ls
drwxr-xr-x 1 root root 4096 Feb 10 01:48 bp_node
-rwx------ 1 root root  259 Feb 10 02:35 gen_bp_start.sh
-rwx------ 1 root root   72 Feb 10 01:48 keosd_start.sh
-rwx------ 1 root root  270 Feb  7 00:57 stop.sh
```

### BP Node key settings

Set Private and Public Key directly on a BP Node.

```bash
root@4e60bc34a625:/omnione-testnet# vi gen_bp_start.sh
```

### Nodeos settings

Perform an operation that specifies the execution option of Nodeos and runs it.\
The below item requires adjustments, please locate them and enter an appropriate value for each.

* `YOUR_ACCOUNT_NAME`  : Account name
* `YOUR_PUB_KEY`            : Public Key
* `YOUR_PRIVATE_KEY`    : Private Key

```bash
#!/bin/bash
nodeos \
-e \
--genesis-json /omnione-testnet/bp_node/config/genesis.json \
--producer-name YOUR_ACCOUNT_NAME \
--signature-provider YOUR_PUB_KEY=KEY:YOUR_PRIVATE_KEY \
--data-dir /omnione-testnet/bp_node/node_data \
--config-dir /omnione-testnet/bp_node/config >> /omnione-testnet/bp_node/node_data/nodeos.log 2>&1 & \
echo $! > eosd.pid
```

## Adjusting the beginning script

Beginning script can be used as it is but please, use it by copying the file for the file management.

```bash
root@4e60bc34a625:/omnione-testnet# cp gen_bp_start.sh bp_start.sh
root@4e60bc34a625:/omnione-testnet# vi bp_start.sh
```

open 'bp\_start.sh' file and locate and delete the code as below then save it.

```bash
--genesis-json /omnione-testnet/bp_node/config/genesis.json
```

### Start the BP Node

Execute the script to perform BP Node operation.

```bash
root@4e60bc34a625:/omnione-testnet#./bp_start.sh
```

#### Checking execution log

The log can be checked to have confirmation whether BP Node is up and running properly.

```bash
root@4e60bc34a625:/omnione-testnet# tail -f bp_node/node_data/nodeos.log
```

If performed up to this point without any error, BP Node has been executed properly.\
Press `Ctrl + p or q` to terminate safely.

## Executing keosd/BP Node simultaneously

Generally, it is unnecessary to proceed with this step but need to perform when it is required.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev-en.omnione.net/node-creation/untitled-1/bp-node-by-using-docker/bp-node-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
