The foundation spent $21.8 million on layer-one research and development as it prepared for the Ethereum merge.