-
Notifications
You must be signed in to change notification settings - Fork 932
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(state): Integrate new Signer for concurrent tx submission
- Loading branch information
1 parent
e40a109
commit 0308aea
Showing
12 changed files
with
203 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
package state | ||
|
||
import ( | ||
kr "github.com/cosmos/cosmos-sdk/crypto/keyring" | ||
"go.uber.org/fx" | ||
|
||
"github.com/celestiaorg/celestia-app/x/blob/types" | ||
"github.com/celestiaorg/celestia-node/libs/fxutil" | ||
) | ||
|
||
// WithKeyringSigner overrides the default keyring signer constructed | ||
// WithKeyring overrides the default keyring constructed | ||
// by the node. | ||
func WithKeyringSigner(signer *types.KeyringSigner) fx.Option { | ||
return fx.Replace(signer) | ||
func WithKeyring(keyring kr.Keyring) fx.Option { | ||
return fxutil.ReplaceAs(keyring, new(kr.Keyring)) | ||
} | ||
|
||
// WithKeyName configures the signer to use the given key. | ||
func WithKeyName(name AccountName) fx.Option { | ||
return fx.Replace(name) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.