Segwit was released in the summer of 2017 to resolve the network congestion. Why is the network still congested? Didn't it enable 1MB blocks to become 2MB blocks? Or do you have to wait for wallet providers to make use of the segwit portion of the software?
SegWit cannot, and was never designed to "resolve network congestion". It:
- fixes the third-party malleability issue that Bitcoin has had since its creation, vastly simplifying many multi-transaction smart contract constructions (like Lightning).
- fixes the O(N2) signature hashing problem.
- adds amount commitments to signature hashing, simplifying design of hardware signing modules ("hardware wallets")
- adds script versioning, making it significantly easier to add new features later as a soft fork
- introduces a scripthash mode with 128-bit security (P2SH only has 80-bit security against certain attacks)
- introduces a discount factor 4 for signatures w.r.t. block size accounting, partially rectifying the issue that creating an output is far cheaper than spending one.
All of the points above are improvements to Bitcoin in the long term w.r.t. scalability and security. In addition, the last point also indirectly provides a modest capacity increase - allowing a bit more throughput for those who choose to use new-style transactions. This is justified by the fact that simultaneously some of the worst-case costs to the network are removed (the O(N2) sighashing), and technological improvements for block relay (see BIP152). It is by no means a blanket "let's double capacity" - more an improvement in the accuracy in counting the cost of transactions, which happens to make things cheaper for the most common ones.
Regarding network congestion, that's just a fact of life if the network is operating sanely. It's both necessary for the system's survival (as the miner subsidy diminishes, fees more and more directly define the incentive for miners to secure the network), and a logical result of any restriction in capacity - whether that is 1MB or 2MB or 100MB blocks. If capacity in blocks isn't being used, the price of block space will drop, and new use cases will develop. For example, if the available space isn't being used for extended periods of time, I expect the feerate to go so low that people will start to try to put their backups in those blocks - burdening the whole world. Essentially, what you call network congestion is just a sign of a functioning fee market: if you don't limit the price, the demand will become infinite.
Disclaimer: I designed a significant part of SegWit.
This is a controversial (but fair) question, so I'll try to be as fair as possible in answering.
Segwit was released in the summer or 2017 to resolve the network congestion
I would not use the word "resolve" here, because that implies that Segregated Witness was intended to completely solve the issue. This is not true. Like with most software scalability issues, the goal was to mitigate the problem to a reasonable level. In fact, Segwit was meant to mitigate several issues with Bitcoin (such as malleability and script versioning), and not just fitting more transactions into blocks. The changes that were made set Bitcoin up to be in a better position for future scaling mitigations. Segwit is not a one time fix. The debate that often occurs is that people demand more transactions/block immediately, to which the only solution is increasing the block size.
Didn't it enable 1MB blocks to become 2MB blocks?
No. Segregated Witness allows for new, Segwit transactions to keep the bulk of their data (the signatures) in a separate tree structure that counts only 1/4th towards the block size limit. As such it is possible for blocks to grow over 1MB, which makes it is possible for more transactions to fit in (about 2-3 times as many, when fully utilized), and miners can incentivize Segwit transactions with lower fees.
Or do you have to wait for wallet providers to make use of the segwit portion of the software?
Yes, but this has mostly already happened. As with any such upgrade, it takes time to start seeing the results (which was deemed unacceptable to some users). As more users submit Segwit transactions, more space will be created in the blocks. In addition, the malleability fixes brought on by Segwit will allow for tier-2 networks (like the Lightning Network), which may cause many users to choose an off-chain solution. This, in turn will free up more space in the blocks.
Why is the network still congested?
Some claim it is combination of increased interest/usage of Bitcoin, and the fact that we haven't fully realized all the potential positive effects of Segregated Witness. Others argue that increasing the block size is the only route to real scalability, and messing with other aspects of the protocol go against the original intent of Bitcoin. This is still being debated.