Blockchain-based Intelligent Traffic System