Skip to content
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

Upgrade LiteDB@5.0.15 #451

Merged
merged 3 commits into from
Apr 7, 2024
Merged

Upgrade LiteDB@5.0.15 #451

merged 3 commits into from
Apr 7, 2024

Conversation

psavva
Copy link
Contributor

@psavva psavva commented Mar 14, 2024

@dangershony @sondreb

I am unable to understand why the Fork is not be rewinded, and why Block 10 still appears in the fork.

Please review the changes, and see if this is something we can fix, or if we leave LiteDB at the current version.
Please note that there are vulenrabilities reported on LiteDB, and this version i've picked is the first version that seems the most stable (most tests pass on BlocCore), when compared to any later version. There are bugs with Transactions in LiteDB which must be resolved prior to any further upgrades of the library.

Failed Tests:

 CanIndexAddresses
   Source: AddressIndexerTests.cs line 72
   Duration: 6.2 sec

  Message: 
Assert.Equal() Failure: Values differ
Expected: 70000
Actual:   60000

  Stack Trace: 
AddressIndexerTests.CanIndexAddresses() line 159
RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

@psavva
Copy link
Contributor Author

psavva commented Mar 14, 2024

Using LiteDb.Studio, i'm able to look at the data actually stored.

Using LiteDb v4, We have AddrTipData:

{
  "_id": 1,
  "TipHashBytes": {"$binary": "+rRrS+OLFLVKtHETRTCaUKKKz8mUNLKMYEPwz3fV4vk="},
  "Height": 8
}

Using LiteDB v4, We have AddrTipData:

{
  "_id": 1,
  "TipHashBytes": {"$binary": "AANXLRfJNePV3/NQhL5Nj9AEfMMYSGCvj8jNChpB0Zg="},
  "Height": 108
}

All other tables have got the exact same data, only discrepancy is the AddrTipData table, which is at Height 108 v5 vs Height 8 on v4

@psavva psavva changed the title Upgrade LiteDB@5.0.14 Upgrade LiteDB@5.0.15 Mar 18, 2024
@psavva
Copy link
Contributor Author

psavva commented Apr 7, 2024

Using LiteDb.Studio, i'm able to look at the data actually stored.

Using LiteDb v4, We have AddrTipData:

{
  "_id": 1,
  "TipHashBytes": {"$binary": "+rRrS+OLFLVKtHETRTCaUKKKz8mUNLKMYEPwz3fV4vk="},
  "Height": 8
}

Using LiteDB v4, We have AddrTipData:

{
  "_id": 1,
  "TipHashBytes": {"$binary": "AANXLRfJNePV3/NQhL5Nj9AEfMMYSGCvj8jNChpB0Zg="},
  "Height": 108
}

All other tables have got the exact same data, only discrepancy is the AddrTipData table, which is at Height 108 v5 vs Height 8 on v4

This is now fixed with the 3rd commit

@dangershony
Copy link
Member

I am confused the data was incorrect? What does this comment fix?

@psavva
Copy link
Contributor Author

psavva commented Apr 7, 2024

I am confused the data was incorrect? What does this comment fix?

16183d5

This one is the fix for the comment above.

I'm just stating that it's resolved

@dangershony
Copy link
Member

Ah right did we not commit this yet?
I think I was waiting for @sondreb to also approve

@psavva
Copy link
Contributor Author

psavva commented Apr 7, 2024 via email

@sondreb
Copy link
Member

sondreb commented Apr 7, 2024

I'll approve and verify with the other updated packages. I assume the rewind issue was fixed.

@sondreb sondreb merged commit 25d97a1 into block-core:master Apr 7, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants