Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Qt: Network Watch tool #9849
Conversation
fanquake
added
the
GUI
label
Feb 24, 2017
| + } | ||
| + ++rows_used; | ||
| + if (rows_used > max_nonweak_txouts) { | ||
| + LogEntry& le = getLogEntryRow(rows_used - max_nonweak_txouts - 1); |
paveljanik
Feb 24, 2017
Contributor
le is the same name as the first argument here, it will bring shadow warning.
|
Thanks. Will review. |
|
Running this PR (built over gitian: https://bitcoin.jonasschnelli.ch/build/54) makes Bitcoin-Qt and also the rest of my apps almost unusable. Had to force kill the process. |
| +void NetWatchLogModel::LogBlock(const CBlockIndex* pblockindex) | ||
| +{ | ||
| + CBlock block; | ||
| + if (!ReadBlockFromDisk(block, pblockindex, Params().GetConsensus())) { |
jonasschnelli
Mar 17, 2017
Member
IMO reading each block will cause a massive slow down during IBD / catchup.
| + // Indicate error somehow? | ||
| + return; | ||
| + } | ||
| + assert(block.vtx.size()); |
jonasschnelli
Mar 17, 2017
Member
What we probably should do is adding each blocks size and vtx.size() to CBlockIndex* (would require to alter the block index, migration, etc. yes).

luke-jr commentedFeb 24, 2017
Simple realtime log of p2p network activity (blocks and transactions only)