This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var f = 1150000; //fork at block number | |
var b = 1139113; //block number | |
var t = 17; //avg time between blocks | |
var d = new Date('2016-03-12 16:38:45'); //datetime for b | |
d.setSeconds(d.getSeconds() + (f-b)*t); //datetime to fork | |
console.log(d); | |
//Mon Mar 14 2016 20:03:24 GMT+0100 (Mitteleuropäische Zeit) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// @title Contract for Parking Places and Parking Reservations. | |
/// @author Bjoern Lakeberg | |
contract ParkingPlaces { | |
address public controller; | |
uint public blockCosts; | |
Place[] public places; | |
mapping (address => Place) placeOf; | |
struct Place { |