-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix nil pointer bug in GetNetworkInferences (#635)
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺ v ✰ Thanks for creating a PR! You're awesome! ✰ v Please note that maintainers will only review those PRs with a completed PR template. ☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --> ## Purpose of Changes and their Description There was an occasional nil pointer panic in `GetNetworkInferences` ## Link(s) to Ticket(s) or Issue(s) resolved by this PR https://linear.app/alloralabs/issue/PROTO-2728/fix-nil-pointer-dereference-panic-in-getnetworkinferences ## Are these changes tested and documented? - [x] If tested, please describe how. If not, why tests are not needed. - Ran the test suite - [x] If documented, please describe where. If not, describe why docs are not needed. - New test cases added for both specific block and latest block. Confirmed nil pointer bug before implementing fix. - [x] Added to `Unreleased` section of `CHANGELOG.md`? ## Still Left Todo 🔴 🔴 🔴 There are several places marked `TODO(spook)` that I need some feedback from the team on. 🔴 🔴 🔴
- Loading branch information
Showing
20 changed files
with
2,681 additions
and
2,830 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,6 @@ linters: | |
- thelper | ||
- unconvert | ||
- unused | ||
- whitespace | ||
- unparam | ||
- revive | ||
- gosec | ||
|
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Release Signing Keys | ||
|
||
This directory contains the PGP keys used to sign releases of the `allora-chain` project. | ||
|
||
You can import the key by running `gpg --import <key>`. | ||
|
||
You can check that the signature was created by the key by running `gpg --verify <signature> <release>`. Signatures can be found in the `*.asc` files in the release assets. | ||
|
||
Releases and their assets can be taken from the [releases page](https://github.com/allora-network/allora-chain/releases). |
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,52 @@ | ||
-----BEGIN PGP PUBLIC KEY BLOCK----- | ||
|
||
mQINBGcXw6gBEADdzgQBiX1CAmsV90GUBu/PgtszjMmYriRA1cwZJiRfBvs4ILj0 | ||
KYDXSyYGIgDyPiPp/PjDJKo28pBI2PIFMrEsRs8Gv3wCp/ZKOZ2Nlt7ZssyeVVVj | ||
n+YTkMLxS6NlMJOl7jL5EPhL1VPpYaaM1MCccDoASsiHKsNHi89ZX/4TJOukaEJF | ||
KvXmYC7QUeogqc7sdv6QeDDeeugBn3Cnm8q/e78VLJvinM2CjPWYxMLPYD4u3yV9 | ||
Sef8LGOglGvWWoyZ17WAUsZKIoldlRK2GqNhdl8mYt5RP98STcUVPOwAsktfxjhd | ||
+NQnIazDWL+qVhlx74WulbtK5oxaLPspED6CNzNUwVqRpqrkTYwsvZJ7O3T1AAMX | ||
wYtDfvYp/BIAqPi+TIPXZYpu+76iURn4fLblKjWlp+e+33fhRtu9JwDveqAteW9u | ||
U4Di1IAP7YCa/EERRZ82DcG0voEV4xymono/YsD3rlp7G6stxiaE/KGg7uLmdozP | ||
j/M8YZCrnJ1EETqyYIgMBsdt7zG7LDXViYOBEmlYTOXfVH/ELTAsZy+PFGBUd5EO | ||
9NMmpA0t52wGZBAO0VuUC1z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eam46QJXY815 | ||
OKF5ITnJGHSSdxxhlQdPcyspvw4RQ7WSeq6b1IdK1wxsfE3q5ACntVgoQlsPDZtV | ||
0eNNkfzhIxLOGVAAIxP1kf1ix7iJFz2O9FZPLa8hdwB/lKfrrIcDfqdYFiqlK4Ox | ||
J/JVQIUh7cd/tDJ4bGd8dwb4lJ6ACxgiHBj1bx8LGE9GiAcxn0RBBq95kNcEuiqo | ||
a/Jvli/7z5rmHIzQG0LlgaIm0884XpeSetSmY3QWHGXPExDUr/Pi3rh93cUxBkc2 | ||
X0cp1W5S9xr0qvP8tU39Pil9o+1nBiIViJUNXvQRNlSNwXC5KMyoT915yQ5HR3oW | ||
iU882aSq5/4s+lcewRpd7TYVvZ5Dk8UdCPXMBg3p3Caeeb4oe9U2iXqpHCMetTP+ | ||
zjvgaHiQdGw7d//Rs3pOzeU3NdkJc5wRsA== | ||
=6oY0 | ||
-----END PGP PUBLIC KEY BLOCK----- |
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,9 @@ | ||
package fn | ||
|
||
func Map[S []InType, U []OutType, InType any, OutType any](in S, fn func(InType) OutType) U { | ||
out := make([]OutType, len(in)) | ||
for i := range in { | ||
out[i] = fn(in[i]) | ||
} | ||
return out | ||
} |
Oops, something went wrong.