Skip to content

Commit

Permalink
Max of 3 BTC headers per block from Sequencer
Browse files Browse the repository at this point in the history
Fixed witness contract address
  • Loading branch information
max-sanchez committed Dec 10, 2024
1 parent 4e77400 commit 1fc5596
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1773,8 +1773,8 @@ func (bc *BlockChain) GetBitcoinAttributesForNextBlock(timestamp uint64) (*types
// if len(headersToAdd) > types.MaximumBtcHeadersInTx {
// headersToAdd = headersToAdd[0:types.MaximumBtcHeadersInTx]
// }
if len(headersToAdd) > 6 {
headersToAdd = headersToAdd[0:6]
if len(headersToAdd) > 3 {
headersToAdd = headersToAdd[0:3]
}
log.Info(fmt.Sprintf("Headers to add while generating Bitcoin Attributes Deposited transaction: %d", headersToAdd))

Expand Down
2 changes: 1 addition & 1 deletion core/vm/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ var hvmContractsToAddress = map[reflect.Type][]byte{
reflect.TypeOf(&btcAddrToScript{}): {0x46},
reflect.TypeOf(&btcInputByTxid{}): {0x47},
reflect.TypeOf(&btcOutputByTxid{}): {0x48},
reflect.TypeOf(&btcTxGetInputWitness{}): {0x48},
reflect.TypeOf(&btcTxGetInputWitness{}): {0x49},
}

var PrecompiledContractsHvm0 = map[common.Address]PrecompiledContract{
Expand Down

0 comments on commit 1fc5596

Please sign in to comment.