According to the developers, transaction relay has three major goals. This includes predicting which transactions will be mined, which also serves to prevent denial-of-service (DoS) attacks. In DoS attacks, miscreants flood the network with spam transactions, overwhelming the network and preventing it from processing transaction requests from legitimate users.