[hashcash] and rc2 (Re: 0.29 rc portability test)
- From: Adam Back <adam@xxxxxxxxxxxxxxx>
- To: hashcash@xxxxxxxxxxxxx
- Date: Sat, 06 Mar 2004 11:43:25 -0500
Hmmm even tho' clean compile there was a bug in it that made TZ not
work. (putenv returns 0 on success not error, and putenv("TZ=")
obviously sets TZ to the empty string, which overrides the timezone to
UTC which is not what want so just removed that fall back also).
So now I've put rc2 up, and on linux at least it behaves correctly:
http://www.hashcash.org/source/current/
And to check compile and do:
% ./hashcash -cv 0:030626:adam@xxxxxxxxxxxxxxx:6470e06d773e05a8
current time: Sat Mar 6 11:37:49 2004 (EST)
token created: Wed Jun 25 20:00:00 2003 (EDT)
rejected: expired
token check: failed
so firstly should see current time in your timezone, and secondly the
time at midnight UTC in your local timezone (and the stamp was created
during summer time so for EST -5 that is -4 from UTC, 24-4 = 20).
Similarly if you request all output in UTC you'll get:
% ./hashcash -cvu 0:030626:adam@xxxxxxxxxxxxxxx:6470e06d773e05a8
current time: Sat Mar 6 16:40:43 2004 (UTC)
token created: Thu Jun 26 00:00:00 2003 (UTC)
Adam
Jason R. Mastaler wrote:
> Compiled perfectly on the following platforms:
>
> - Mac OS X 10.3.2, gcc 3.3
>
> - FreeBSD 4.9-STABLE, gcc 2.95.4
- References:
- [hashcash] 0.29 rc portability test
- From: Adam Back
- [hashcash] Re: 0.29 rc portability test
- From: Jason R. Mastaler
Other related posts:
- » [hashcash] and rc2 (Re: 0.29 rc portability test)
- [hashcash] 0.29 rc portability test
- From: Adam Back
- [hashcash] Re: 0.29 rc portability test
- From: Jason R. Mastaler