Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sanchez committed Jan 16, 2025
1 parent 0622227 commit 0fde2e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions eth/protocols/eth/broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func (p *Peer) prefetchBTCBlocks() {
missingBlocks := p.blockchain.GetMissingBtcBlocks()
if missingBlocks != nil && len(missingBlocks) > 0 {
// responses := make(chan *Response)
log.Info("Requesting missing BTC blocks from peer", "len", len(missingBlocks))
err := p.RequestBtcBlocks(missingBlocks)
if err != nil {
// TODO: Change to Debug logging
Expand Down
2 changes: 2 additions & 0 deletions eth/protocols/eth/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,8 @@ func handleBTCBlocks(backend Backend, msg Decoder, peer *Peer) error {

for i, btcBlock := range res.BTCBlocksResponse {
log.Info(fmt.Sprintf("RLP-encoded BTC block from peer: %x", btcBlock.Bytes()))
bb := *btcBlock
log.Info(fmt.Sprintf("RLP-encoded BTC block from peer 2: %x", bb[:]))
/*
var btcBlockBytes common.BitcoinBlock
err := rlp.DecodeBytes(*blockRlp, &btcBlockBytes)
Expand Down

0 comments on commit 0fde2e8

Please sign in to comment.