Skip to content

Allow config of init height for tbc#6

Merged
ClaytonNorthey92 merged 4 commits intohemifrom
clayton/localnet-udpates
Jun 7, 2024
Merged

Allow config of init height for tbc#6
ClaytonNorthey92 merged 4 commits intohemifrom
clayton/localnet-udpates

Conversation

@ClaytonNorthey92
Copy link

allow configuration of init height for tbc

cmd/geth/main.go Outdated

var initHeight uint64
initHeight = 2585811 // Temp for testing, this should be part of chain config
var initHeight uint64 = 2585811

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make this variable a global constant? 🤔

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure!

@ClaytonNorthey92 ClaytonNorthey92 merged commit 7dbd076 into hemi Jun 7, 2024
@ClaytonNorthey92 ClaytonNorthey92 deleted the clayton/localnet-udpates branch June 7, 2024 15:32
ClaytonNorthey92 added a commit that referenced this pull request Apr 1, 2025
* Add pop transaction type

* Copyright

* Add version

* Add PoP tx type version and add it to valid transaction types

* Start sprinkling pop tx

* re-added Value to PopTx.copy(), added test, added todo comment

* Disable test that won't work with reflect due to pointers

* Changed PoPTx to PoPPayoutTx, and replaced the PoP data fields (raw Bitcoin tx bytes, Merkle path, containing Bitcoin block, etc.); rather than carrying full PoP data the PoPPayoutTx just performs the actual payouts by calling GovernanceToken.mintPoPRewards().

* - Prevent l1 fees from being set or re-derived for PoP Txes in transaction receipts
- Add popPayoutNonce field similar to depositNonce in Deposit Txes
- Nonce for PoP transactions set automatically during state transition similar to Deposit Txes
-

* Remove "Version" from PoP Payout Tx

* Misc. Fixes & TODOs Resolved
- Added PoP Payout Nonce serialization to RPCTransaction
- Added checks to PoP Tx Unmarshalling for fields that shouldn't be set
- Removed unset fields from PoP Tx copy
- Added PoPPayoutNonce serialization to receipt marshalling
- Confirmed only Sender() method on EIP2930Signer needs to process PoP Payout sender correctly
- Fixed RPC PoP Tx deserialization test

* Fixed Non-Typed RLP Encode/Decode
Added PoPPayoutTx to Receipt tests

* Fixed Non-Typed RLP Encode/Decode
Added PoPPayoutTx to Receipt tests

* Removed unused Nonce, IsSystemTransaction, and Value fields from PoP Tx
Implemented TestPopPayoutTxEncodeDecode

* Fixed merge bug

* Regenerated gen_receipt_json.go

---------

Co-authored-by: ClaytonNorthey92 <clayton.northey@gmail.com>
Co-authored-by: Max Sanchez <max@veriblock.com>
Co-authored-by: Maxwell Sanchez <macbymax@gmail.com>
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.

2 participants