koinos / koinos-account-history

The account history microservice saves transaction history and provides an API to the Koinos cluster via RPC over AMQP.
MIT License
1 stars 0 forks source link

#18: Change whitelist option to address-whitelist #20

Closed mvandeberg closed 7 months ago

mvandeberg commented 7 months ago

Resolves #18

Brief description

Change whitelist option to address-whitelist and parse whitelist option from CLI

Checklist

Demonstration

❯ ./programs/koinos_account_history/koinos_account_history -w foobar
2023-11-29 13:43:45.534857 (account_history.1tLLG) [main.cpp:236] <info>: Koinos Account History v1.0.0 (5855e24)
2023-11-29 13:43:45.535006 (account_history.1tLLG) [main.cpp:249] <info>: Using fork resolution algorithm: fifo
2023-11-29 13:43:45.535025 (account_history.1tLLG) [main.cpp:283] <info>: Whitelist:
2023-11-29 13:43:45.535042 (account_history.1tLLG) [main.cpp:288] <info>:  - foobar
2023-11-29 13:43:45.535058 (account_history.1tLLG) [main.cpp:291] <info>: Starting account history...
2023-11-29 13:43:45.535074 (account_history.1tLLG) [main.cpp:292] <info>: Number of jobs: 32
2023-11-29 13:43:45.555701 (account_history.1tLLG) [account_history.cpp:71] <info>: Opened database at block - Height: 0, ID: 0x12200000000000000000000000000000000000000000000000000000000000000000
2023-11-29 13:43:45.555749 (account_history.1tLLG) [main.cpp:435] <info>: Connecting AMQP client...
2023-11-29 13:43:45.559226 (account_history.1tLLG) [main.cpp:437] <info>: Established AMQP client connection to the server
2023-11-29 13:43:45.559297 (account_history.1tLLG) [main.cpp:439] <info>: Attempting to connect to block_store...
2023-11-29 13:43:45.559674 (account_history.1tLLG) [main.cpp:443] <info>: Established connection to block_store
2023-11-29 13:43:45.559691 (account_history.1tLLG) [main.cpp:445] <info>: Attempting to connect to chain...
2023-11-29 13:43:45.559910 (account_history.1tLLG) [main.cpp:449] <info>: Established connection to chain
2023-11-29 13:43:45.560157 (account_history.1tLLG) [main.cpp:460] <info>: Connecting AMQP request handler...
2023-11-29 13:43:45.563282 (account_history.1tLLG) [main.cpp:462] <info>: Established request handler connection to the AMQP server
2023-11-29 13:43:45.563307 (account_history.1tLLG) [main.cpp:466] <info>: Listening for requests over AMQP
2023-11-29 13:43:45.649817 (account_history.1tLLG) [main.cpp:131] <info>: Sync progress - Height: 1000, ID: 0x12209a5801892bec297f715f9c04b4b68eaf46738c03251391d375ac63af877f7cbd (1y, 24d, 00h, 34m, 30s block time remaining)
2023-11-29 13:43:45.693634 (account_history.1tLLG) [main.cpp:131] <info>: Sync progress - Height: 2000, ID: 0x12203371819efbeb87ef650bf08872b1c2069bf15b94d9d5e7342df6fed7f891f60b (1y, 23d, 23h, 47m, 31s block time remaining)
2023-11-29 13:43:45.750241 (account_history.1tLLG) [main.cpp:131] <info>: Sync progress - Height: 3000, ID: 0x12200ac0dd3f2384cdb6de8c2cdc8f831c61c3a667d1378cf9fcc7228ce098ce341e (1y, 23d, 23h, 08m, 11s block time remaining)