Skip to content

draft/miner#86

Open
vienlnn wants to merge 24 commits into
BuildOnViction:developfrom
vienlnn:draft/miner
Open

draft/miner#86
vienlnn wants to merge 24 commits into
BuildOnViction:developfrom
vienlnn:draft/miner

Conversation

@vienlnn
Copy link
Copy Markdown
Contributor

@vienlnn vienlnn commented Apr 23, 2026

No description provided.

Comment thread consensus/posv/posv.go
Comment on lines +718 to +732
select {
case <-abort:
return
case <-timeout:
// Avoid deadlock during sync: if we can't get state in time,
// skip the state-dependent checkpoint validation.
log.Warn("VerifyHeaders: timeout waiting for gap block state, skipping checkpoint state validation",
"checkpoint", number, "requiredBlock", requiredBlock,
"currentBlock", cb.NumberU64())
waited = true
case <-time.After(200 * time.Millisecond):
}
if waited {
break
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what is this

Comment thread core/state_processor.go
//
// This is the single entry point for both the miner and block import to apply
// a transaction under POSV consensus, ensuring identical state transitions.
func ApplyTransactionPosv(config *params.ChainConfig, bc ChainContext, author *common.Address, gp *GasPool, statedb *state.StateDB, header *types.Header, tx *types.Transaction, usedGas *uint64, cfg vm.Config) (*types.Receipt, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why you don't use the origin ApplyTransaction

Comment on lines -432 to +450

log := &types.Log{}
log.Address = p.config.Viction.ValidatorBlockSignContract
log.BlockNumber = header.Number.Uint64()
statedb.AddLog(log)
// Set the receipt logs and create a bloom for filtering
logEntry := &types.Log{}
logEntry.Address = config.Viction.ValidatorBlockSignContract
logEntry.BlockNumber = header.Number.Uint64()
statedb.AddLog(logEntry)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What are you doing here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

create separate file.

@imduchuyyy
Copy link
Copy Markdown
Contributor

Please clean the PR, all the new code ralated to Victionchain, create a separate file for it.

@imduchuyyy
Copy link
Copy Markdown
Contributor

We just added new params on viction config for finalized api, this PR introduced new network profile, make sure you have add it to your config.

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