[hashcash] Re: unable to cancel from progress function

  • From: Adam Back <adam@xxxxxxxxxxxxxxx>
  • To: hashcash@xxxxxxxxxxxxx
  • Date: Sat, 17 Dec 2005 06:51:22 -0500

I tested this on windows 1.18 and linux 1.18 -- seems to work for me.

(I modified the progress_callback in hashcash.c temporarily to return
0, and it does interrrupt and stop the mint process.  Note you need to
give -P for progress_callback to be used).

Note that the callback is only called every 65536 tries for efficiency
so it is not completely immediate (depends on your processor speed).

Adam

On Sun, Nov 27, 2005 at 04:29:18PM -0800, Cory Nelson wrote:
> Hello!
> 
> I'm making a small Windows UI for hashcash 1.18 and it doesn't seem to
> cancel a mint if I return 0.  Is this a known bug?

Other related posts: