Merge pull request #377 from vikramrajkumar/master

Fixes
Do not sign blocks with invalid timestamps (resolves #341)