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

fix(gnovm): save object when refCount changed #2992

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
15418df
fix(gnovm): save object when refCount changed
omarsy Oct 21, 2024
c85b6ae
Merge branch 'master' into fix/2266
omarsy Oct 27, 2024
df8612c
fix: test
omarsy Oct 27, 2024
f1adc4b
Merge branch 'master' into fix/2266
omarsy Nov 10, 2024
48b8446
Merge branch 'master' into fix/2266
omarsy Nov 19, 2024
318014f
fix: test
omarsy Nov 19, 2024
41fe779
Merge remote-tracking branch 'upstream/master' into fix/2266
omarsy Nov 28, 2024
687b266
Merge branch 'master' into fix/2266
omarsy Nov 28, 2024
e750618
Merge remote-tracking branch 'upstream/master' into fix/2266
omarsy Dec 3, 2024
2a01fb7
Merge branch 'master' into fix/2266
omarsy Dec 4, 2024
0102b50
fix: test after merge
omarsy Dec 4, 2024
60dd253
delete: remove unused test file zrealm17.gno
omarsy Dec 7, 2024
33728e3
Merge remote-tracking branch 'upstream/master' into fix/2266
omarsy Dec 7, 2024
789d9ef
fix test after merge
omarsy Dec 7, 2024
038cbc6
fix: update reference counts when count inc on didupdate
omarsy Dec 11, 2024
ff25e05
Merge branch 'master' into fix/2266
omarsy Dec 11, 2024
28c310d
Merge branch 'master' into fix/2266
omarsy Dec 13, 2024
52c08a4
Merge remote-tracking branch 'upstream/master' into fix/2266
omarsy Dec 18, 2024
dc42fce
fix: test after merge
omarsy Dec 18, 2024
d19b4ae
Merge branch 'master' into fix/2266
omarsy Dec 19, 2024
47fcc55
Merge remote-tracking branch 'upstream/master' into fix/2266
omarsy Dec 20, 2024
ba0f644
Merge branch 'master' into fix/2266
omarsy Dec 21, 2024
6d4474d
fix(gnolang/store): prevent logging operations for Block objects
omarsy Dec 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 44 additions & 6 deletions examples/gno.land/p/demo/avl/z_1_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,44 @@ func main() {

// Realm:
// switchrealm["gno.land/r/test"]
// u[a8ada09dee16d791fd406d629fe29bb0ed084a30:6]={
// "ObjectInfo": {
// "ID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:6",
// "ModTime": "11",
// "OwnerID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:5",
// "RefCount": "1"
// },
// "Value": {
// "T": {
// "@type": "/gno.RefType",
// "ID": "gno.land/p/demo/avl.Node"
// },
// "V": {
// "@type": "/gno.RefValue",
// "Hash": "1375f6f96a1a3f298347dc8fc0065afa36cb7f0f",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:7"
// }
// }
// }
// u[a8ada09dee16d791fd406d629fe29bb0ed084a30:8]={
// "ObjectInfo": {
// "ID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:8",
// "ModTime": "13",
// "OwnerID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:5",
// "RefCount": "1"
// },
// "Value": {
// "T": {
// "@type": "/gno.RefType",
// "ID": "gno.land/p/demo/avl.Node"
// },
// "V": {
// "@type": "/gno.RefValue",
// "Hash": "b28057ab7be6383785c0a5503e8a531bdbc21851",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:9"
// }
// }
// }
// c[a8ada09dee16d791fd406d629fe29bb0ed084a30:15]={
// "Fields": [
// {
Expand Down Expand Up @@ -143,7 +181,7 @@ func main() {
// "@type": "/gno.PointerValue",
// "Base": {
// "@type": "/gno.RefValue",
// "Hash": "2f3adc5d0f2a3fe0331cfa93572a7abdde14c9aa",
// "Hash": "cafae89e4d4aaaefe7fdf0691084508d4274a981",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:8"
// },
// "Index": "0",
Expand Down Expand Up @@ -191,7 +229,7 @@ func main() {
// },
// "V": {
// "@type": "/gno.RefValue",
// "Hash": "fe20a19f956511f274dc77854e9e5468387260f4",
// "Hash": "b2e446f490656c19a83c43055de29c96e92a1549",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:13"
// }
// }
Expand Down Expand Up @@ -235,7 +273,7 @@ func main() {
// "@type": "/gno.PointerValue",
// "Base": {
// "@type": "/gno.RefValue",
// "Hash": "c89a71bdf045e8bde2059dc9d33839f916e02e5d",
// "Hash": "4e56eeb96eb1d9b27cf603140cd03a1622b6358b",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:6"
// },
// "Index": "0",
Expand All @@ -254,7 +292,7 @@ func main() {
// "@type": "/gno.PointerValue",
// "Base": {
// "@type": "/gno.RefValue",
// "Hash": "90fa67f8c47db4b9b2a60425dff08d5a3385100f",
// "Hash": "7b61530859954d1d14b2f696c91c5f37d39c21e7",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:12"
// },
// "Index": "0",
Expand Down Expand Up @@ -283,7 +321,7 @@ func main() {
// },
// "V": {
// "@type": "/gno.RefValue",
// "Hash": "83e42caaf53070dd95b5f859053eb51ed900bbda",
// "Hash": "fedc6d430b38c985dc6a985b2fcaee97e88ba6da",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:11"
// }
// }
Expand Down Expand Up @@ -320,7 +358,7 @@ func main() {
// "@type": "/gno.PointerValue",
// "Base": {
// "@type": "/gno.RefValue",
// "Hash": "1faa9fa4ba1935121a6d3f0a623772e9d4499b0a",
// "Hash": "515b45e4a6f5fa153a0251d7108781d86c52ce1c",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:10"
// },
// "Index": "0",
Expand Down
50 changes: 44 additions & 6 deletions examples/gno.land/p/demo/avl/z_2_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,44 @@ func main() {

// Realm:
// switchrealm["gno.land/r/test"]
// u[a8ada09dee16d791fd406d629fe29bb0ed084a30:7]={
// "ObjectInfo": {
// "ID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:7",
// "ModTime": "12",
// "OwnerID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:6",
// "RefCount": "1"
// },
// "Value": {
// "T": {
// "@type": "/gno.RefType",
// "ID": "gno.land/p/demo/avl.Node"
// },
// "V": {
// "@type": "/gno.RefValue",
// "Hash": "ba7550123807b8da857e38b72f66204b1ec582a2",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:8"
// }
// }
// }
// u[a8ada09dee16d791fd406d629fe29bb0ed084a30:9]={
// "ObjectInfo": {
// "ID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:9",
// "ModTime": "14",
// "OwnerID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:6",
// "RefCount": "1"
// },
// "Value": {
// "T": {
// "@type": "/gno.RefType",
// "ID": "gno.land/p/demo/avl.Node"
// },
// "V": {
// "@type": "/gno.RefValue",
// "Hash": "3cb8485664c356fcb5c88dfb96b7455133a6b022",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:10"
// }
// }
// }
// c[a8ada09dee16d791fd406d629fe29bb0ed084a30:16]={
// "Fields": [
// {
Expand Down Expand Up @@ -142,7 +180,7 @@ func main() {
// "@type": "/gno.PointerValue",
// "Base": {
// "@type": "/gno.RefValue",
// "Hash": "849a50d6c78d65742752e3c89ad8dd556e2e63cb",
// "Hash": "db39c9c0a60e0d5b30dbaf9be6150d3fec16aa4b",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:9"
// },
// "Index": "0",
Expand Down Expand Up @@ -190,7 +228,7 @@ func main() {
// },
// "V": {
// "@type": "/gno.RefValue",
// "Hash": "a1160b0060ad752dbfe5fe436f7734bb19136150",
// "Hash": "2e9127534f91b385426d76e8e164f50f635cc1de",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:14"
// }
// }
Expand Down Expand Up @@ -234,7 +272,7 @@ func main() {
// "@type": "/gno.PointerValue",
// "Base": {
// "@type": "/gno.RefValue",
// "Hash": "fd95e08763159ac529e26986d652e752e78b6325",
// "Hash": "43e03b0c877b40c34e12bc2b15560e8ecd42ae9d",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:7"
// },
// "Index": "0",
Expand All @@ -253,7 +291,7 @@ func main() {
// "@type": "/gno.PointerValue",
// "Base": {
// "@type": "/gno.RefValue",
// "Hash": "3ecdcf148fe2f9e97b72a3bedf303b2ba56d4f4b",
// "Hash": "4b123e2424d900a427f9dee88a70ce61f3cdcf5b",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:13"
// },
// "Index": "0",
Expand Down Expand Up @@ -282,7 +320,7 @@ func main() {
// },
// "V": {
// "@type": "/gno.RefValue",
// "Hash": "63126557dba88f8556f7a0ccbbfc1d218ae7a302",
// "Hash": "76d9227e755efd6674d8fa34e12decb7a9855488",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:12"
// }
// }
Expand All @@ -301,7 +339,7 @@ func main() {
// "@type": "/gno.PointerValue",
// "Base": {
// "@type": "/gno.RefValue",
// "Hash": "d31c7e797793e03ffe0bbcb72f963264f8300d22",
// "Hash": "ff46b4dd63457c3fd59801e725f65af524ec829d",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:11"
// },
// "Index": "0",
Expand Down
Loading
Loading