Todas as lições · Other · Começa aqui · Glossário
Nervos DAO phase-one withdrawal layoutPráticoDe uma correção
De uma correção · Verificação: em parte certa · Verificada em 2026-11-19
In phase one, output i must mirror deposit input i (same capacity, lock and DAO type), with its data set to the deposit block number as a u64 LE, and the deposit block hash must be in header_deps. Put any fee-paying input and output after all deposits. A custom lock that enforces a full 180-epoch term before phase one pushes payout to the next cycle boundary (about deposit + 360 epochs, roughly 60 days).
Porque importa: Without index-aligned outputs the DAO type script rejects the withdrawal, and a lock that waits a full term before phase one silently doubles the time to payout.
Padrão
inputs/outputs: [...deposits(index-aligned), sponsor]; outputsData[i]=u64le(depositHeader.number); since = ABSOLUTE_EPOCH_FLAG | (depositEpoch + 180*periods + 1)Um teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- toastmanAu/daowow:
apps/web/test/dao-tx.test.js
- Conceitos
- Since and time locks, Transaction building and fees, Cell deps and script lookup
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-11-13
- Última mudança
- 2026-11-13
- Última verificação
- 2026-11-19
- Verificação contra o commit
- em parte certa: um núcleo verdadeiro, com uma parte solta ou demasiado larga
Fontes (1)
- 2026-11-13 · toastmanAu/daowow · mais deste projeto
Mais sobre Other
- Absolute epoch since needs the 0x20 metric flag
- Nervos DAO phase-two withdrawal since and amount
- Occupied capacity minimum for every output
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Nervos DAO phase-one withdrawal layout", CKB lessons, https://pulse.lusocryptolabs.com/learned/other/nervos-dao-phase-one-withdrawal-layout, CC BY 4.0, last changed 2026-11-13.