Bitcoin Forum
April 23, 2024, 12:47:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: key.getCreationTimeSeconds() gives 0  (Read 1241 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 grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713876464
Hero Member
*
Offline Offline

Posts: 1713876464

View Profile Personal Message (Offline)

Ignore
1713876464
Reply with quote  #2

1713876464
Report to moderator
1713876464
Hero Member
*
Offline Offline

Posts: 1713876464

View Profile Personal Message (Offline)

Ignore
1713876464
Reply with quote  #2

1713876464
Report to moderator
Mike Hearn
Moderator
Legendary
*
Offline Offline

Activity: 1526
Merit: 1128


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: 1128


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!