contractcourt: store new taproot resolution info in new key

We pull the information from the sign descriptors and store them in the
resolutions. However, the resolvers created end up duplicating the
resolution data, so we update the sign descs as needed during start up.
This commit is contained in:
Olaoluwa Osuntokun committed 2023-08-22 16:33:30 -07:00
1 parent a1788fe4a2
commit 47d4eb341d
3 files changed
+294 -17

No files matched your search

+1 -4
View File
@@ -625,10 +625,7 @@ func TestContractResolutionsStorage(t *testing.T) {
diskRes, err := testLog.FetchContractResolutions()
require.NoError(t, err, "unable to read resolution from db")
if !reflect.DeepEqual(&res, diskRes) {
t.Fatalf("resolution mismatch: expected %v\n, got %v",
spew.Sdump(&res), spew.Sdump(diskRes))
}
require.Equal(t, res, *diskRes)
// We'll now delete the state, then attempt to retrieve the set of
// resolvers, no resolutions should be found.