{"push_id":674752521,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"e9af4e65b5afaa870f6cdcf2f7c2ee56c703bffa","before":"e1412d3e96ff11d05d727bebedcc42698853cccc","commits":[{"sha":"36cba8f1182e8284ec0017e57c5ffb519cd9798f","author":{"email":"19a45ba432ebf68c5c553ec17ef341bff6a9e1b9@gmail.com","name":"Gavin Andresen"},"message":"Alert if it is very likely we are getting a bad chain\n\nCreate a monitoring task that counts how many blocks have been found in the last four hours.\n\nIf very few or too many have been found, an alert is triggered.\n\n\"Very few\" and \"too many\" are set based on a false positive rate of once every fifty years of constant running with constant hashing power, which works out to getting 5 or fewer or 48 or more blocks in four hours (instead of the average of 24).\n\nOnly one alert per day is triggered, so if you get disconnected from the network (or are being Sybil'ed) -alertnotify will be triggered after 3.5 hours but you won't get another -alertnotify for 24 hours.\n\nTested with a new unit test and by running on the main network with -debug=partitioncheck\n\nRun test/test_bitcoin --log_level=message to see the alert messages:\n    WARNING: check your network connection, 3 blocks received in the last 4 hours (24 expected)\n    WARNING: abnormally high number of blocks generated, 60 blocks received in the last 4 hours (24 expected)\n\nThe -debug=partitioncheck debug.log messages look like:\n    ThreadPartitionCheck : Found 22 blocks in the last 4 hours\n    ThreadPartitionCheck : likelihood: 0.0777702","distinct":true,"url":"https://api.github.com/repos/bitcoin/bitcoin/commits/36cba8f1182e8284ec0017e57c5ffb519cd9798f"},{"sha":"e9af4e65b5afaa870f6cdcf2f7c2ee56c703bffa","author":{"email":"bbc07dc96bb50bf6868a2ddfc4dae14fbed703d9@gmail.com","name":"Wladimir J. van der Laan"},"message":"Merge pull request #5947\n\n36cba8f Alert if it is very likely we are getting a bad chain (Gavin Andresen)","distinct":true,"url":"https://api.github.com/repos/bitcoin/bitcoin/commits/e9af4e65b5afaa870f6cdcf2f7c2ee56c703bffa"}]}