GenesysGo / shadow-drive-rust

Apache License 2.0
21 stars 13 forks source link

Default commitment level #8

Closed VegetarianOrc closed 2 years ago

VegetarianOrc commented 2 years ago

Changes the default ShadowDriveClient constructor to default to conservative Solana RpcClient settings. The older constructor is available via ShadowDriveClient::new_with_rpc which allows for users to construct an RpcClient with the settings desired and pass that for use. Clearer docs and examples are now provided on constructor methods.

The commitment level set at initialization time is now respected throughout the SDK.

Closes #6 .