Replay Attack Detection in Blockchain