Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouop0 committed Jan 16, 2024
1 parent ea46c85 commit df1d008
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@ Step9: loop check proposal by proposalId from channel[proposalId]. if the state

## environment Variables

| env | value | description | remarks |
|------------|----------------------------------------------------------------------------------------------------------|------------------|--------------------|
| LOG_LEVEL | info | | warn、error、panic、fatal |
| LOG_FORMAT | text | | options: text、json |
| MYSQL_DATA_SOURCE | root:root@tcp(127.0.0.1:3306)/b2_committer?charset=utf8mb4&parseTime=True&loc=Local&multiStatements=true | | |
| MYSQL_MAX_IDLE_CONNS | 10 | | |
| MYSQL_MAX_OPEN_CONNS | 20 | | |
| MYSQL_CONN_MAX_LIFETIME | 3600 | | |
| RPC_URL | https://b2-nodes.bsquared.network | B2NODE-RPC | |
| BLOCKCHAIN | B2-NODE | | |
| INIT_BLOCK_NUMBER | 0 | block-height | |
| INIT_BLOCK_HASH | 0xfbecff3c9ca93f097d243d01d027d28f9bdcdebfb3208977246504ef4dddfc08 | block-hash | | |
| POLYGON_ZKEVM_ADDRESS | 0x67d269191c92Caf3cD7723F116c85e6E9bf55933 | | |
| NETWORK_NAME | testnet3 | btc-network privateKey | |
| BITCOIN_RPC_PRIVATE_KEY | | btc-rpc host | |
| env | value | description | remarks |
|------------|----------------------------------------------------------------------------------------------------------|------------------------|--------------------|
| LOG_LEVEL | info | | warn、error、panic、fatal |
| LOG_FORMAT | text | | options: text、json |
| MYSQL_DATA_SOURCE | root:root@tcp(127.0.0.1:3306)/b2_committer?charset=utf8mb4&parseTime=True&loc=Local&multiStatements=true | | |
| MYSQL_MAX_IDLE_CONNS | 10 | | |
| MYSQL_MAX_OPEN_CONNS | 20 | | |
| MYSQL_CONN_MAX_LIFETIME | 3600 | | |
| RPC_URL | https://b2-nodes.bsquared.network | B2NODE-RPC | |
| BLOCKCHAIN | B2-NODE | | |
| INIT_BLOCK_NUMBER | 0 | block-height | |
| INIT_BLOCK_HASH | 0xfbecff3c9ca93f097d243d01d027d28f9bdcdebfb3208977246504ef4dddfc08 | block-hash | | |
| POLYGON_ZKEVM_ADDRESS | 0x67d269191c92Caf3cD7723F116c85e6E9bf55933 | | |
| NETWORK_NAME | testnet3 | btc-network type | |
| BITCOIN_PRIVATE_KEY | | privateKey | |
| COMMITTER_DESTINATION_ADDRESS | 0xB50109D57ae713388dc404eb2e8311bd9A8125a9 | btc commit destination | | |


Expand Down
2 changes: 1 addition & 1 deletion internal/types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Config struct {

type BitcoinRpcConfig struct {
NetworkName string `env:"NETWORK_NAME" envDefault:"testnet3"`
PrivateKey string `env:"BITCOIN_RPC_PRIVATE_KEY" envDefault:"f5d9aaa2c5ae280e153efcca934d9a022ad21dfd9ead2b203664f977dc90ec80"` //signet
PrivateKey string `env:"BITCOIN_PRIVATE_KEY" envDefault:"f5d9aaa2c5ae280e153efcca934d9a022ad21dfd9ead2b203664f977dc90ec80"` //signet
DestinationAddress string `env:"COMMITTER_DESTINATION_ADDRESS" envDefault:"tb1pydyjgpezqp2q98ux0dc283d3wvt6c4mluvwxfxrsqcle2jz8vwysep55n5"`
}

Expand Down

0 comments on commit df1d008

Please sign in to comment.