No. Until we have encoded everything, we can't create the top-level metadata, so we don't know how many blocks it will be.
On Tue, Nov 14, 2006 at 10:15:57PM +0000, nextgens at freenetproject.org wrote: > Author: nextgens > Date: 2006-11-14 22:15:56 +0000 (Tue, 14 Nov 2006) > New Revision: 10922 > > Modified: > trunk/freenet/src/freenet/node/fcp/ClientPutBase.java > Log: > We always know the number of blocks of an insert, don't we ? > > Modified: trunk/freenet/src/freenet/node/fcp/ClientPutBase.java > =================================================================== > --- trunk/freenet/src/freenet/node/fcp/ClientPutBase.java 2006-11-14 > 14:50:10 UTC (rev 10921) > +++ trunk/freenet/src/freenet/node/fcp/ClientPutBase.java 2006-11-14 > 22:15:56 UTC (rev 10922) > @@ -324,8 +324,7 @@ > } > > public synchronized boolean isTotalFinalized() { > - if(!(progressMessage instanceof SimpleProgressMessage)) return > false; > - else return > ((SimpleProgressMessage)progressMessage).isTotalFinalized(); > + return true; > } > > public synchronized String getFailureReason() { -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20061115/da20db42/attachment.pgp>