|
| 1 | +# BEEFY Consensus Upgrade Testing Report |
| 2 | + |
| 3 | +## Test Objective |
| 4 | +Testing the upgrade process from master branch (non-BEEFY) to BEEFY-enabled consensus on Partner Chains network. |
| 5 | + |
| 6 | +## Initial Network State Assessment |
| 7 | + |
| 8 | +### Node Versions (Pre-upgrade) |
| 9 | +- **Node 1**: `1.7.0-5f2afb1b15a` (BEEFY-enabled from `upgrade_with_beefy_testing` branch) |
| 10 | +- **Nodes 2-6**: `1.7.0-de400f4b0cf` (Master branch, pre-BEEFY) |
| 11 | + |
| 12 | +### Network Health Analysis |
| 13 | +**Block Production**: All nodes actively producing and importing blocks |
| 14 | +- Current block height: #614 (at 13:09 UTC) |
| 15 | +- Network connectivity: 5 peers per node |
| 16 | +- Block finality: Working (GRANDPA finalizing blocks ~2-3 blocks behind tip) |
| 17 | + |
| 18 | +### Detailed Node Behavior Analysis |
| 19 | + |
| 20 | +#### Node 1 (BEEFY-Enabled) |
| 21 | +**Status**: ✅ BEEFY gadget active and operational |
| 22 | +**Key Observations**: |
| 23 | +- BEEFY gadget successfully started: `🥩 Transforming grandpa notification` |
| 24 | +- Processing GRANDPA notifications into BEEFY format |
| 25 | +- Gossip rebroadcast active: `🥩 Gossip rebroadcast` |
| 26 | +- Block production: Both "ProBono" and "Incentivized" blocks |
| 27 | +- No errors or warnings related to BEEFY functionality |
| 28 | + |
| 29 | +**Sample BEEFY Log**: |
| 30 | +``` |
| 31 | +2025-08-26 13:08:31.097 DEBUG beefy: 🥩 Transforming grandpa notification. #606(0x401a3e1ab18f8d01b4ea76acb1094089ad5cb9ddb3fcfb9526309c713ba661b2) |
| 32 | +2025-08-26 13:08:46.057 TRACE beefy: 🥩 Gossip rebroadcast |
| 33 | +``` |
| 34 | + |
| 35 | +#### Node 2 (Master Branch) |
| 36 | +**Status**: ✅ Normal operation on master |
| 37 | +**Key Observations**: |
| 38 | +- Normal block production and import |
| 39 | +- Block authoring: `🙌 Starting consensus session` → `🎁 Prepared block` → `🔖 Pre-sealed block` |
| 40 | +- ProBono block production active |
| 41 | +- No BEEFY-related logs (as expected) |
| 42 | + |
| 43 | +#### Node 3 (Master Branch) |
| 44 | +**Status**: ✅ Normal import-only operation |
| 45 | +**Key Observations**: |
| 46 | +- Importing blocks from network |
| 47 | +- GRANDPA authority set changes processing normally |
| 48 | +- Not actively authoring blocks in observed period |
| 49 | +- Network connectivity healthy (5 peers) |
| 50 | + |
| 51 | +#### Node 4 (Master Branch) |
| 52 | +**Status**: ✅ Active block production |
| 53 | +**Key Observations**: |
| 54 | +- Active block authoring: ProBono blocks |
| 55 | +- Consensus session management working |
| 56 | +- Block preparation and sealing normal |
| 57 | +- Authority set changes processed correctly |
| 58 | + |
| 59 | +#### Node 5 (Master Branch) |
| 60 | +**Status**: ✅ Active block production |
| 61 | +**Key Observations**: |
| 62 | +- Incentivized block production active |
| 63 | +- Block hash transformations normal (pre-sealed vs final) |
| 64 | +- Network synchronization healthy |
| 65 | +- Both ProBono and Incentivized blocks produced |
| 66 | + |
| 67 | +#### Node 6 (Master Branch) |
| 68 | +**Status**: ✅ Normal operation |
| 69 | +**Key Observations**: |
| 70 | +- Committee rotation and session management active |
| 71 | +- Block participation data processing: `🧾 Processing block participation data` |
| 72 | +- ProBono block production |
| 73 | +- No indication of issues with master branch operation |
| 74 | + |
| 75 | +### Key Findings |
| 76 | + |
| 77 | +1. **BEEFY Integration Success**: Node 1 successfully integrated BEEFY consensus without breaking compatibility with master branch nodes |
| 78 | +2. **Network Compatibility**: Mixed network (1 BEEFY + 5 master) operates normally - no consensus issues |
| 79 | +3. **BEEFY Key Pre-configuration**: BEEFY keys appear to be pre-configured in the Docker setup (no manual key generation required) |
| 80 | +4. **Block Production Distribution**: All node types (BEEFY-enabled and master) can produce blocks in current configuration |
| 81 | + |
| 82 | +### Important Notes for Documentation |
| 83 | + |
| 84 | +#### BEEFY Keys Auto-Configuration |
| 85 | +**Finding**: BEEFY keys appear to be automatically available from Docker configuration |
| 86 | +**Impact**: We did not test manual BEEFY key generation process |
| 87 | +**Recommendation**: Separate testing needed for: |
| 88 | +- `partner-chains-node wizard generate-keys --beefy` command |
| 89 | +- `author_rotateKeys` RPC endpoint for BEEFY key generation |
| 90 | +- Manual keystore management for BEEFY keys |
| 91 | + |
| 92 | +#### Network Behavior Before Runtime Upgrade |
| 93 | +**Current State**: BEEFY-enabled nodes can coexist with master branch nodes without runtime upgrade |
| 94 | +**Block Production**: Both node types actively participate in block production |
| 95 | +**Consensus**: Network operates on standard Aura/GRANDPA consensus with BEEFY gadget running in parallel |
| 96 | + |
| 97 | +--- |
| 98 | + |
| 99 | +## Node Upgrade Process |
| 100 | + |
| 101 | +### Upgrade Strategy |
| 102 | +Sequential upgrade of nodes 2-5 to BEEFY-enabled binaries, leaving node 6 on master branch for post-upgrade testing. |
| 103 | + |
| 104 | +### Node 2 Upgrade Process |
| 105 | +**Timestamp**: 2025-08-26 13:10 UTC |
| 106 | +**Pre-upgrade State**: |
| 107 | +- Version: 1.7.0-de400f4b0cf |
| 108 | +- Block height: #614 |
| 109 | +- Status: Healthy, producing ProBono blocks |
| 110 | + |
| 111 | +#### Upgrade Steps |
| 112 | + |
| 113 | +**Node 2 Upgrade Complete** ✅ |
| 114 | +- **Time**: 13:11 UTC |
| 115 | +- **Result**: Success - Binary upgraded, BEEFY gadget initialized |
| 116 | +- **Version**: `1.7.0-de400f4b0cf` → `1.7.0-5f2afb1b15a` |
| 117 | +- **BEEFY Status**: `🥩 BEEFY gadget waiting for BEEFY pallet to become available...` |
| 118 | +- **Network Impact**: No disruption, continued block production |
| 119 | + |
| 120 | +### Node 3 Upgrade Process |
| 121 | +**Timestamp**: 2025-08-26 13:18 UTC |
| 122 | +**Pre-upgrade State**: |
| 123 | +- Version: 1.7.0-de400f4b0cf |
| 124 | +- Block height: #695 |
| 125 | +- Status: Healthy, producing ProBono blocks |
| 126 | + |
| 127 | +**Node 3 Upgrade Complete** ✅ |
| 128 | +- **Time**: 13:19 UTC |
| 129 | +- **Result**: Success - Binary upgraded, BEEFY gadget initialized |
| 130 | +- **Version**: `1.7.0-de400f4b0cf` → `1.7.0-5f2afb1b15a` |
| 131 | +- **BEEFY Status**: `🥩 BEEFY gadget waiting for BEEFY pallet to become available...` |
| 132 | +- **Network Impact**: No disruption, active block production and authoring |
| 133 | + |
| 134 | +### Current Network State (3/6 nodes upgraded) |
| 135 | +``` |
| 136 | +┌──────┬─────────────────────┬──────────┬───────┬────────────────────┐ |
| 137 | +│ Node │ Version │ Block │ Peers │ Status │ |
| 138 | +├──────┼─────────────────────┼──────────┼───────┼────────────────────┤ |
| 139 | +│ 1 │ 1.7.0-5f2afb1b15a │ #698 │ 5 │ BEEFY-ENABLED │ |
| 140 | +│ 2 │ 1.7.0-5f2afb1b15a │ #698 │ 5 │ BEEFY-ENABLED │ |
| 141 | +│ 3 │ 1.7.0-5f2afb1b15a │ #698 │ 5 │ BEEFY-ENABLED │ |
| 142 | +│ 4 │ 1.7.0-de400f4b0cf │ #698 │ 5 │ MASTER (pre-BEEFY) │ |
| 143 | +│ 5 │ 1.7.0-de400f4b0cf │ #698 │ 5 │ MASTER (pre-BEEFY) │ |
| 144 | +│ 6 │ 1.7.0-de400f4b0cf │ #698 │ 5 │ MASTER (pre-BEEFY) │ |
| 145 | +└──────┴─────────────────────┴──────────┴───────┴────────────────────┘ |
| 146 | +``` |
| 147 | + |
| 148 | +### Critical Observation: BEEFY Activity |
| 149 | +**Only Node 1 shows active BEEFY processing** (`🥩 Transforming grandpa notification`) |
| 150 | +**Nodes 2-3 show BEEFY waiting state** (`🥩 BEEFY gadget waiting for BEEFY pallet to become available...`) |
| 151 | + |
| 152 | +**Analysis**: This suggests that: |
| 153 | +1. BEEFY gadget initializes successfully on all upgraded nodes |
| 154 | +2. Active BEEFY processing requires runtime upgrade to enable BEEFY pallet |
| 155 | +3. Node 1 may have different configuration or was running during a different state |
0 commit comments