MetacoSA / NBitcoin

Comprehensive Bitcoin library for the .NET framework.
MIT License
1.86k stars 844 forks source link

Use `ReadAsync` in .NET 6 (take 2) #1097

Open kiminuo opened 2 years ago

kiminuo commented 2 years ago

Successor of #1088

I was thinking about https://github.com/MetacoSA/NBitcoin/pull/1088#issuecomment-1128314543 and it seems to me that it can be fixed by just narrowing the scope of the change to the NetworkStream as that's the main thing I wanted to improve in the first place.

@NicolasDorier Does it make sense to you now? If not I'll abandon this idea as I don't have other ideas.