Bitcoin Forum
May 05, 2024, 08:59:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: key.getCreationTimeSeconds() gives 0  (Read 1242 times)
jonas.schnelli (OP)
Member
**
Offline Offline

Activity: 66
Merit: 10

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
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Mike Hearn
Moderator
Legendary
*
Offline Offline

Activity: 1526
Merit: 1129


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 (OP)
Member
**
Offline Offline

Activity: 66
Merit: 10

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
Merit: 1129


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!