https://github.com/celo-org/celo-blockchain/pull/1865/files