Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
e0c9d5e
include the validator hasher
randygrok May 19, 2025
3791755
add attestation commit
randygrok May 20, 2025
39f40b7
first batch of changes
randygrok May 21, 2025
21d3136
Merge remote-tracking branch 'origin/main' into feat/fix-block-fields…
randygrok May 21, 2025
519df96
refactor for clarity
randygrok May 21, 2025
1ab5f07
add better comment for publishBlockInternal
randygrok May 21, 2025
21283d2
temp commit before finishing last tests
randygrok May 23, 2025
fd46274
update and it does forge blocks
randygrok May 23, 2025
782aba0
add payload provider for signature
randygrok May 26, 2025
adf4ad5
add signature payload provider
randygrok May 26, 2025
eaef309
add header hasher
randygrok May 26, 2025
20e9d17
include proto for attestation
randygrok May 26, 2025
d58ff27
build blocks
randygrok May 26, 2025
22427fd
remove unused code
randygrok May 27, 2025
a039e4f
remove unused code
randygrok May 27, 2025
54c7c06
Merge remote-tracking branch 'origin/main' into feat/fix-block-fields…
randygrok May 27, 2025
e242311
Fixes after merge
randygrok May 28, 2025
f29fa1f
fix tests
randygrok May 28, 2025
7eb6017
fix lint
randygrok May 28, 2025
a8f5ed9
Merge remote-tracking branch 'origin/main' into feat/fix-block-fields…
randygrok May 28, 2025
fdef9f0
go mod tidy
randygrok May 28, 2025
0c913cb
go mod tidy
randygrok May 28, 2025
1d39a24
fix linter
randygrok May 28, 2025
9ffa5af
fix tests
randygrok May 29, 2025
a856d9f
update apps evm based
randygrok May 29, 2025
df6dc00
fix e2e
randygrok May 29, 2025
330f476
delete bins
randygrok May 29, 2025
db366b4
fix some tests
randygrok May 29, 2025
5280c5b
fix some more tests
randygrok May 29, 2025
7c0325c
Merge branch 'main' into feat/fix-block-fields-ibc
randygrok May 29, 2025
ddfd254
fix some more tests 2
randygrok May 29, 2025
51ec46b
fix some more tests 3
randygrok May 29, 2025
2ad973f
Merge branch 'main' into feat/fix-block-fields-ibc
randygrok May 29, 2025
654b267
remove comment
randygrok May 29, 2025
f892f8a
fix linter
randygrok May 29, 2025
d4b4a1e
fix failed test
randygrok May 29, 2025
65ab03c
add variadic options
randygrok Jun 2, 2025
6a441b7
bring up the stack the manager options
randygrok Jun 3, 2025
47df1ad
use latest
randygrok Jun 3, 2025
c620107
Merge remote-tracking branch 'origin/main' into feat/fix-block-fields…
randygrok Jun 3, 2025
6d13bfe
remove old header hasher
randygrok Jun 4, 2025
f16a969
fix tests
randygrok Jun 4, 2025
725de12
remove unused fields
randygrok Jun 4, 2025
6ae8751
Refactor: replace createDefaultSignaturePayloadProvider with types.Cr…
randygrok Jun 4, 2025
21492c1
use utils
randygrok Jun 4, 2025
5e4aa31
some comments from the review
randygrok Jun 4, 2025
8bb299c
Merge remote-tracking branch 'origin/main' into feat/fix-block-fields…
randygrok Jun 4, 2025
a54894a
fix build problem
randygrok Jun 4, 2025
be96a0c
solve e2e
randygrok Jun 4, 2025
52d4fc8
Merge branch 'main' into feat/fix-block-fields-ibc
randygrok Jun 4, 2025
d7aad29
provide default values
randygrok Jun 4, 2025
153026d
Merge branch 'feat/fix-block-fields-ibc' of github.com-randy:rollkit/…
randygrok Jun 4, 2025
5811214
fix evm tests
randygrok Jun 4, 2025
15a6cf2
Merge branch 'main' into feat/fix-block-fields-ibc
randygrok Jun 5, 2025
8728d14
Merge branch 'main' into feat/fix-block-fields-ibc
randygrok Jun 6, 2025
91a658c
remove magic number
randygrok Jun 6, 2025
372dbf1
create default header hasher now private
randygrok Jun 6, 2025
cb91837
fix tests
randygrok Jun 6, 2025
2872be6
refactor and rename the blockDataWithSignature
randygrok Jun 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add better comment for publishBlockInternal
  • Loading branch information
randygrok committed May 21, 2025
commit 1ab5f071c422c6ff40a4f8cabc55390c5b7f34ac
14 changes: 11 additions & 3 deletions block/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,17 @@ func (m *Manager) getBlockData(ctx context.Context, newHeight uint64, prevBlockD
return header, data, nil
}

// publishBlockInternal is the internal implementation for publishing a block.
// It's assigned to the publishBlock field by default.
// Any error will be returned, unless the error is due to a publishing error.
// publishBlockInternal handles the core block production and publishing logic. It performs the following steps:
// 1. Checks context and pending blocks limits
// 2. Retrieves or creates a new block at the next height
// 3. Signs and validates the block
// 4. Applies the block to update the state
// 5. Saves the block and updates the store
// 6. Broadcasts the block through channels
// 7. Creates and saves attestation for the block
//
// The function returns an error if any step fails, except for cases where no block needs to be published
// (e.g., no transactions available). In such cases, it returns nil.
func (m *Manager) publishBlockInternal(ctx context.Context) error {
if err := m.checkContextAndPendingBlocks(ctx); err != nil {
return err
Expand Down