-
Notifications
You must be signed in to change notification settings - Fork 282
debug system config #1179
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
debug system config #1179
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -542,12 +542,12 @@ func (h *handler) BroadcastTransactions(txs types.Transactions) { | |||||||||||||||||||||||||||||||||||||
func (h *handler) minedBroadcastLoop() { | ||||||||||||||||||||||||||||||||||||||
defer h.wg.Done() | ||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||
for obj := range h.minedBlockSub.Chan() { | ||||||||||||||||||||||||||||||||||||||
if ev, ok := obj.Data.(core.NewMinedBlockEvent); ok { | ||||||||||||||||||||||||||||||||||||||
h.BroadcastBlock(ev.Block, true) // First propagate block to peers | ||||||||||||||||||||||||||||||||||||||
h.BroadcastBlock(ev.Block, false) // Only then announce to the rest | ||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||
// for obj := range h.minedBlockSub.Chan() { | ||||||||||||||||||||||||||||||||||||||
// if ev, ok := obj.Data.(core.NewMinedBlockEvent); ok { | ||||||||||||||||||||||||||||||||||||||
// h.BroadcastBlock(ev.Block, true) // First propagate block to peers | ||||||||||||||||||||||||||||||||||||||
// h.BroadcastBlock(ev.Block, false) // Only then announce to the rest | ||||||||||||||||||||||||||||||||||||||
// } | ||||||||||||||||||||||||||||||||||||||
// } | ||||||||||||||||||||||||||||||||||||||
Comment on lines
+545
to
+550
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Block broadcasting is completely disabled This change completely disables the broadcasting of newly mined blocks to network peers. This will prevent nodes running this code from contributing to block propagation in the network, which could significantly impact network health and performance. If this is temporary debugging code, please add a prominent comment explaining why it's disabled and when it should be re-enabled. If this is intended to be a permanent change, consider:
func (h *handler) minedBroadcastLoop() {
defer h.wg.Done()
+ // Block broadcasting disabled intentionally because:
+ // [EXPLANATION HERE]
// for obj := range h.minedBlockSub.Chan() {
// if ev, ok := obj.Data.(core.NewMinedBlockEvent); ok {
// h.BroadcastBlock(ev.Block, true) // First propagate block to peers
// h.BroadcastBlock(ev.Block, false) // Only then announce to the rest
// }
// }
} 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||
// txBroadcastLoop announces new transactions to connected peers. | ||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hardcoded address bypasses dynamic L1 storage resolution
This change fundamentally alters the system's behavior - the function still retrieves L1 storage data but then ignores it, instead assigning a hardcoded Ethereum address. This approach bypasses the dynamic address resolution mechanism that appears to be the original design intent.
Consider either:
📝 Committable suggestion