Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Separate Testnet State DB #2757

Open
adamkrellenstein opened this issue Nov 23, 2024 · 0 comments
Open

No Separate Testnet State DB #2757

adamkrellenstein opened this issue Nov 23, 2024 · 0 comments

Comments

@adamkrellenstein
Copy link
Member

adamkrellenstein commented Nov 23, 2024

counterparty-server --testnet start

Counterparty Core v10.7.2-alpha.1
Verbosity: 0
Quiet: False
Network: testnet
Configuration File: /Users/adam/Library/Application Support/counterparty/server.conf
Counterparty Database: /Users/adam/Library/Application Support/counterparty/counterparty.testnet.db
Counterparty State Database: /Users/adam/Library/Application Support/counterparty/state.db

First start up after upgrading:

> counterparty-server --testnet start

Counterparty Core v10.7.2-alpha.1
Verbosity: 0
Quiet: False
Network: testnet
Configuration File: /Users/adam/Library/Application Support/counterparty/server.conf
Counterparty Database: /Users/adam/Library/Application Support/counterparty/counterparty.testnet.db
Counterparty State Database: /Users/adam/Library/Application Support/counterparty/state.db
Rust Fetcher Database: /Users/adam/Library/Caches/counterparty/fetcherdb.testnet
Server Log: /Users/adam/Library/Logs/counterparty/server.testnet.log
API Access Log: /Users/adam/Library/Logs/counterparty/server.testnet.access.log

------------------------------ START ------------------------------

2024-11-23T12:27:53.447-08:00 - [    INFO] - Connecting to database... (SQLite 3.45.1.0)
2024-11-23T12:27:53.492-08:00 - [ WARNING] - Database WAL file detected. To ensure no data corruption has occurred, run `counterpary-server check-db`.
2024-11-23T12:27:53.495-08:00 - [    INFO] - Initializing database...
2024-11-23T12:27:53.497-08:00 - [    INFO] - Running PRAGMA optimize...
2024-11-23T12:27:54.396-08:00 - [    INFO] - Starting API Watcher thread...
2024-11-23T12:27:54.423-08:00 - [    INFO] - Starting Parent Process Checker thread...
2024-11-23T12:27:54.423-08:00 - [    INFO] - Starting WSGI Server: waitress
2024-11-23T12:27:54.424-08:00 - [    INFO] - API Watcher - Catch up completed. (0h 0m 0s)
2024-11-23T12:27:54.426-08:00 - [    INFO] - Starting WSGI Server thread...
2024-11-23T12:27:54.903-08:00 - [    INFO] - Starting v1 API Status Poller thread...
2024-11-23T12:27:54.903-08:00 - [    INFO] - Starting API Server v1 thread...
2024-11-23T12:27:54.906-08:00 - [    INFO] - Catching up...
2024-11-23T12:27:56.098-08:00 - [    INFO] - Starting RSFetcher thread...
2024-11-23T12:27:56.098-08:00 - [    INFO] - RS Fetcher - Indexer initializing...
2024-11-23T12:27:56.099-08:00 - [    INFO] - RS Fetcher - Connecting to database: /Users/adam/Library/Caches/counterparty/fetcherdb.testnet
2024-11-23T12:27:56.106-08:00 - [    INFO] - RS Fetcher - Connected
2024-11-23T12:27:56.106-08:00 - [    INFO] - RS Fetcher - Initialized
2024-11-23T12:27:56.106-08:00 - [    INFO] - RS Fetcher - First database op: GetMaxBlockHeight...
2024-11-23T12:27:56.106-08:00 - [    INFO] - RS Fetcher - First database op: GetMaxBlockHeight took 7.5µs
2024-11-23T12:27:56.106-08:00 - [    INFO] - RS Fetcher - First Bitcoin client op: GetBlockchainHeight...
2024-11-23T12:27:56.129-08:00 - [    INFO] - RS Fetcher - First Bitcoin client op: GetBlockchainHeight took 23.203958ms
2024-11-23T12:27:56.129-08:00 - [    INFO] - RS Fetcher - Starting at block height: 319910
2024-11-23T12:27:56.129-08:00 - [    INFO] - RS Fetcher - Targeting block height: 2869671
2024-11-23T12:27:56.129-08:00 - [    INFO] - RS Fetcher - Fetcher started
2024-11-23T12:27:56.542-08:00 - [    INFO] - Block 319910
2024-11-23T12:27:57.152-08:00 - [    INFO] - Block 319910 - Send GLDPAMPBAROZ from mzZTWJpV to mfys5AU2 (c3828d3) [valid]
2024-11-23T12:27:57.153-08:00 - [    INFO] - Block 319910 - Send GLDPAMPBAROZ from mzZTWJpV to mfys5AU2 (82b6dab) [valid]
2024-11-23T12:27:57.154-08:00 - [    INFO] - Block 319910 - Send GLDPAMPBAROZ from mzZTWJpV to mfys5AU2 (b8b27c4) [valid]
2024-11-23T12:27:57.155-08:00 - [    INFO] - Block 319910 - Parsing complete. L: 31e60fd, TX: 9a4aa35, M: 74ef5d4 (0.61s)
2024-11-23T12:27:57.165-08:00 - [    INFO] - Block 319911
2024-11-23T12:27:57.165-08:00 - [    INFO] - Block 319911 - Parsing complete. L: ff81a98, TX: 10b2235, M: a9d93af (0.00s)
2024-11-23T12:27:57.166-08:00 - [    INFO] - Block 319912
2024-11-23T12:27:57.166-08:00 - [    INFO] - Block 319912 - Parsing complete. L: 8d5e48c, TX: a80314d, M: 4ee5f92 (0.00s)
2024-11-23T12:27:57.167-08:00 - [    INFO] - Block 319913
2024-11-23T12:27:57.167-08:00 - [    INFO] - Block 319913 - Parsing complete. L: db21d77, TX: 91a2141, M: fbbc9cb (0.00s)
2024-11-23T12:27:57.168-08:00 - [    INFO] - Block 319914
2024-11-23T12:27:57.168-08:00 - [    INFO] - Block 319914 - Parsing complete. L: a6876a8, TX: 0407180, M: 7b405a2 (0.00s)
2024-11-23T12:27:57.168-08:00 - [    INFO] - Block 319915
2024-11-23T12:27:57.169-08:00 - [    INFO] - Block 319915 - Parsing complete. L: e2d776d, TX: df62d0a, M: 8c4e01a (0.00s)
2024-11-23T12:27:57.169-08:00 - [    INFO] - Block 319916
2024-11-23T12:27:57.170-08:00 - [    INFO] - Block 319916 - Parsing complete. L: a5a857f, TX: 65f3f04, M: 4df6872 (0.00s)
2024-11-23T12:27:57.170-08:00 - [    INFO] - Block 319917
2024-11-23T12:27:57.171-08:00 - [    INFO] - Block 319917 - Parsing complete. L: c5b6446, TX: df56185, M: 9636a81 (0.00s)

> ls
archive          counterparty.db-shm  counterparty.state.db        counterparty.testnet.db      counterparty.testnet.db-wal  ledger-hash  state.db
counterparty.db  counterparty.db-wal  counterparty.testnet.api.db  counterparty.testnet.db-shm  double                       server.conf  triple

And we should really add a test that would catch this kind of problem.

@adamkrellenstein adamkrellenstein changed the title No Testnet State DB? No Separate Testnet State DB Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant