getLockTime method
Returns either DateTime or int (blockHeight) Yes, the return type overloading sucks. Welcome to bitcoin.
Implementation
int getLockTime() {
//FIXME: Figure out how to use Type System to force consumer of this
// method to think about the return value. e.g. scala.Option
return _nLockTime;
// var timestamp = _nLockTime;
// if (timestamp < 500000000) {
// return timestamp;
// } else {
// var date = DateTime.fromMillisecondsSinceEpoch(timestamp);
// return date; //.millisecondsSinceEpoch / 1000;
// }
}