-
Notifications
You must be signed in to change notification settings - Fork 732
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Node/Solana: Reobservation by transaction ID (#4223)
* Node/Solana: Reobservation by transaction ID * Code review rework
- Loading branch information
1 parent
28223dc
commit 8cf8650
Showing
2 changed files
with
126 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package solana | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
|
||
"github.com/gagliardetto/solana-go" | ||
) | ||
|
||
func TestVerifyConstants(t *testing.T) { | ||
// If either of these ever change, message publication and reobservation will break. | ||
assert.Equal(t, SolanaAccountLen, solana.PublicKeyLength) | ||
assert.Equal(t, SolanaSignatureLen, len(solana.Signature{})) | ||
} |