Skip to content

add autoactivate options on disabled witness#92

Closed
m0ssa99 wants to merge 11 commits intoVIZ-Blockchain:masterfrom
m0ssa99:witness_guard
Closed

add autoactivate options on disabled witness#92
m0ssa99 wants to merge 11 commits intoVIZ-Blockchain:masterfrom
m0ssa99:witness_guard

Conversation

@m0ssa99
Copy link
Copy Markdown

@m0ssa99 m0ssa99 commented Apr 24, 2026

No description provided.

Co-authored-by: Copilot <copilot@github.com>
@m0ssa99 m0ssa99 marked this pull request as draft April 24, 2026 08:49
m0ssa99 and others added 10 commits April 25, 2026 02:34
- Added `compare_fork_branches()` method to `database` for vote-weighted comparison of fork branches.
- Refactored `_push_block()` to utilize `compare_fork_branches()` for determining fork weight during block production.
- Introduced `remove_blocks_by_number()` in `fork_database` to prune stale competing blocks from dead forks.
- Enhanced `maybe_produce_block()` in the witness plugin to implement a two-level fork collision resolution strategy:
  - Level 1: Vote-weighted comparison when both forks are present in the fork database.
  - Level 2: Timeout mechanism to produce on the current fork if the head is stuck after a defined number of deferrals.
- Updated logging and reset mechanisms for fork collision defer count.
- Ensured compatibility with pre-HF12 nodes by applying timeout logic universally.
…onfirmation handling

Co-authored-by: Copilot <copilot@github.com>
@m0ssa99 m0ssa99 closed this by deleting the head repository Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant