[hashcash] Re: Database purge query

Seems to work for me.  Bear in mind that there is a default grace
period of 2days, so stamps will not actually exire until 16 days after
issue if you say -e 14d.  You can override that with -g 0 if you dont
want any grace period.

Note also for the -e to apply to the purge, that option must come
before the -p option.  (Otherwise it applies to the -c etc).

Using your stamp file if I do this:

hashcash -g 0 -p now -t 060731

then the stamp file afterwards holds:

last_purged 060730230000
1:27:060717:bikikii::ATSrpfAr7W1prZUO:00000000055kh+ 1209600

(if no -e is given the e value given at time of checking (-c) is
stored in the db and used.  ie the 1209600 == 14days.)

Adam

On Fri, Aug 18, 2006 at 08:25:10PM -0500, BiKiKii wrote:
> [hashcash-1.22 W32 console]
> 
> Hello,
> 
> Is there something wrong with the below commandline?
> The commandline is abbreviated but all the options are listed.
> The option of "-f" is used as the database is located at a different
> drive:\directory location than the executable. 
> 
> Too many or incompatible options?
> 
> I expect it to purge the database of expired stamps.
> Stamps that are older than 14 days. But it only purges
> those stamps older than 28 days.
> 
> 
> hashcash -cd -X -i -q -p 7d -e 14d -b 27 -r bikikii -f hashcash.sdb < "%x%"
> 
> last_purged 060812095308
> 1:27:060716:bikikii::LSQ1tRGm+Opf6Ish:0000000007QTsq 1209600
> 1:27:060717:bikikii::ATSrpfAr7W1prZUO:00000000055kh+ 1209600
> 1:27:060716:bikikii::/KM9u7rGJMXBr0wW:0X63s 1209600

Other related posts: