-
Notifications
You must be signed in to change notification settings - Fork 33
[Utility] Session Interface - GetSession Implementation (1st iteration)
#683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
c473aea
session.proto added - good starting point
Olshansk c0f7269
Got session to almost generate
Olshansk 11353f7
Merge branch 'main' into issues/569/session_impl
Olshansk 363f4ac
Snapshot before changing how we manage chains
Olshansk fc0f1f5
Added fisherman_per_session_owner
Olshansk 7eff6f1
Merge branch 'main' into issues/569/session_impl
Olshansk 74f11be
All unit tests pasing again
Olshansk 4f4cbbc
Added TestSession_SessionHeight
Olshansk 4b096bf
Merge branch 'main' into issues/569/session_impl
Olshansk 0bf2d75
Remove read ctx
Olshansk 6c04122
Refactor some tests
Olshansk c913c6d
Merge branch 'main' into issues/569/session_impl
Olshansk bfceded
Added a test validating num of servicers and fisherman is correct
Olshansk 96fe1a2
Merge branch 'main' into issues/569/session_impl
Olshansk 2eb3c62
Unit tests passing before adding more complex ones
Olshansk 42c59ec
Finished TestSession_GetSession_ServicersAndFishermenCounts_ChainAvai…
Olshansk ee5b3f4
Finished TestSession_GetSession_InvalidFutureSession
Olshansk 50ccff3
Add tests for TestSession_GetSession_ServicersAndFishermanEntropy
Olshansk 830c72a
Merge branch 'main' into issues/569/session_impl
Olshansk 88a36b7
Changed getSessionHeight to hydrateSessionHeight
Olshansk 99b25a3
Updated DefaultNumBlockPerSession=1 and tests passing again
Olshansk 23f74dd
Self review
Olshansk 3fa7ac3
Added some session application validation checks
Olshansk cc15ba1
Fix one of the broken tests
Olshansk 42bc9f6
Merge branch 'main' into issues/569/session_impl
Olshansk ede4821
Replied to all comments
Olshansk 4caac93
Code and documentation cleanup
Olshansk c723b33
Fix broken test
Olshansk e108e03
Merge with main
Olshansk 32bf680
Checkpoint - replied to some of Bryan's comments
Olshansk 8688645
Consolidated MarshalZerologArray() in logger/utils.go
Olshansk 7df6c88
Replied to remaining review comments
Olshansk 50d0c71
Merge branch 'main' into issues/569/session_impl
Olshansk 424cd54
Update utility/session.go
Olshansk 6c4d3ce
Apply suggestions from code review
Olshansk 6f26138
Update utility/session_test.go
Olshansk 547d4b2
[Makefile] fixes the localnet_db_cli target (#700)
dylanlott f3a545e
[E2E] adds in-cluster config for E2E tests (#689)
dylanlott efba9a6
[Docs] Update shared module creation (#693)
bryanchriswhite 673fccb
s/actorsToAdds/actorsToAddrs
Olshansk 565f0b7
Updated logger README
Olshansk 5f072f2
Add clarifying comments
Olshansk aebd770
Reply to comments
Olshansk 664abf7
Update TECHDEBT ticket
Olshansk 4607f7e
Merge with main
Olshansk c824948
Apply demorgan's law
Olshansk cf2f6e0
Markdown nit
Olshansk d0d3463
Update Makefile
Olshansk 2e92fd2
Update utility/session_test.go
Olshansk b83efc7
[P2P] chore: remove unnecessary `stdnetwork` package (#703)
bryanchriswhite c2e2c9a
[P2P] refactor: rename "network" to "router" (#704)
bryanchriswhite 66a8940
MInor NIT comments
Olshansk e26608a
utility/module_test.go -> utility/main_test.go
Olshansk e4ac25e
Typo
Olshansk 50b92e5
Fix changelogs
Olshansk d06787e
Update all the changelogs
Olshansk 42d69bc
Merge with main
Olshansk e2864b8
Add t.Helper in session_test.go
Olshansk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,17 @@ | ||
| package logger | ||
|
|
||
| import "github.com/rs/zerolog" | ||
|
|
||
| // stringLogArrayMarshaler implements the `zerolog.LogArrayMarshaler` interface | ||
| // to marshal an array of strings for use with zerolog. | ||
| type StringLogArrayMarshaler struct { | ||
| Strings []string | ||
| } | ||
|
|
||
| // MarshalZerologArray implements the respective `zerolog.LogArrayMarshaler` | ||
| // interface member. | ||
| func (marshaler StringLogArrayMarshaler) MarshalZerologArray(arr *zerolog.Array) { | ||
| for _, str := range marshaler.Strings { | ||
| arr.Str(str) | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.