Bitcoin Forum
October 19, 2017, 06:28:18 PM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: key.getCreationTimeSeconds() gives 0  (Read 1118 times)
jonas.schnelli
Member
**
Offline Offline

Activity: 66

bitcoin core contributor


View Profile WWW
November 01, 2013, 11:35:50 AM
 #1

Hi

After playing around with a wallet (it's encrypted now), i get 0 when loading the key.getCreationTimeSeconds().
The wallet works fine, can spend coins, and there is only one key in it.

Any ideas why key.getCreationTimeSeconds response always 0?
Was the information got lost somehow?
Or is this a normal behavior for encrypted wallets?

thanks
1508437698
Hero Member
*
Offline Offline

Posts: 1508437698

View Profile Personal Message (Offline)

Ignore
1508437698
Reply with quote  #2

1508437698
Report to moderator
1508437698
Hero Member
*
Offline Offline

Posts: 1508437698

View Profile Personal Message (Offline)

Ignore
1508437698
Reply with quote  #2

1508437698
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Mike Hearn
Moderator
Legendary
*
Offline Offline

Activity: 1526


View Profile
November 01, 2013, 03:48:25 PM
 #2

Where did the key come from originally? I haven't heard of this issue before, encryption only touches the private key bits so the creation time shouldn't be impacted.
jonas.schnelli
Member
**
Offline Offline

Activity: 66

bitcoin core contributor


View Profile WWW
November 02, 2013, 07:05:56 PM
 #3

the wallet was only be created and manipulated by bitcoinj.
But it been used during/for development...

I've also saw some problem when force quitting the app/bitcoinj layer so the autosave-task could not start/complete. This sometimes ended up in missing transactions.

</jonas>
Mike Hearn
Moderator
Legendary
*
Offline Offline

Activity: 1526


View Profile
November 03, 2013, 10:11:31 AM
 #4

Is that with the latest code? You shouldn't be seeing missing transactions when force quitting as saving the wallet occurs once a transaction is received (see the bottom of the Wallet.receive method).

The only time I know of when you can get an ECKey with a creation time of zero is when it was imported from some source that doesn't provide a timestamp. Otherwise I haven't seen that issue. If you can find a way to reproduce it, file a bug.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!