You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/docs/Node/index.md
+18-6Lines changed: 18 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,13 +53,9 @@ npm run up
53
53
The node will create the docker volumes in the `packages/node/chain-setup/**` directory of the selected chain and network. This folder contains the blockchain data and the database. The postgres database is used to efficiently store the complete blockchain data, for fast access and indexing.
54
54
!!!
55
55
56
-
### Postgres Database
57
-
58
-
The node uses a Postgres database to store the synced information required by the Bitcoin Computer protocol. The database is automatically created and managed by the node using a docker container. The full db schema can be found [here](https://github.com/bitcoin-computer/monorepo/blob/main/packages/node/db/db_schema.sql).
56
+
#### IMPORTANT: Create indexes after syncing to mainnet
59
57
60
-
### Create indexes after syncing to mainnet
61
-
62
-
To reduce db syncing overhead, the sync process is carried out without creating db indexes. After the node has synced, you can create the indexes with the command below.
58
+
To speed up the syncing process, syncing is carried out without db indexes. After the node has synced, you can create the indexes with the command below.
63
59
64
60
<fontsize=1>
65
61
@@ -70,6 +66,22 @@ npm run create-indexes
70
66
71
67
</font>
72
68
69
+
### Postgres Database
70
+
71
+
The node uses a Postgres database to store the synced information required by the Bitcoin Computer protocol. The database is automatically created and managed by the node using a docker container. The full db schema can be found [here](https://github.com/bitcoin-computer/monorepo/blob/main/packages/node/db/db_schema.sql).
72
+
73
+
By default the database uses the following credentials:
74
+
75
+
```shell
76
+
POSTGRES_USER='bcn'
77
+
POSTGRES_PASSWORD='bcn'
78
+
POSTGRES_DB='bcn'
79
+
POSTGRES_HOST='db'
80
+
POSTGRES_PORT='5432'
81
+
```
82
+
83
+
You can configure these from the `.env` file for production deployments.
84
+
73
85
### Run the Tests
74
86
75
87
You can run the integration tests with the command below.
0 commit comments