diff --git a/go.mod b/go.mod
index de20d2b4a80765dbafb1b7e6ecd07ce517d1edce..4c1cbb1c79346fada651a54d202d757ce6a7e9bc 100644
--- a/go.mod
+++ b/go.mod
@@ -36,7 +36,7 @@ require (
 	github.com/json-iterator/go v1.1.12
 	github.com/julienschmidt/httprouter v1.3.0
 	github.com/kevinburke/go-bindata v3.21.0+incompatible
-	github.com/ledgerwatch/erigon-lib v0.0.0-20211022024120-505bf9724987
+	github.com/ledgerwatch/erigon-lib v0.0.0-20211022025716-168b5d673f8a
 	github.com/ledgerwatch/log/v3 v3.3.1
 	github.com/ledgerwatch/secp256k1 v0.0.0-20210626115225-cd5cd00ed72d
 	github.com/logrusorgru/aurora/v3 v3.0.0
diff --git a/go.sum b/go.sum
index 0561aff5e64bfa2230fb693975ef71db7a2a3b7f..7116e1afdb46503caf383767a7dc700d8145d9ff 100644
--- a/go.sum
+++ b/go.sum
@@ -497,8 +497,8 @@ github.com/kylelemons/godebug v0.0.0-20170224010052-a616ab194758 h1:0D5M2HQSGD3P
 github.com/kylelemons/godebug v0.0.0-20170224010052-a616ab194758/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k=
 github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c=
 github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8=
-github.com/ledgerwatch/erigon-lib v0.0.0-20211022024120-505bf9724987 h1:R4gmBeavM2kRodijPKvGrPNAax6B7V7HxQOExoUAkho=
-github.com/ledgerwatch/erigon-lib v0.0.0-20211022024120-505bf9724987/go.mod h1:+Dgxlx2A74QQAp1boH34onSy3k/qDftDiWvGXGC+5FA=
+github.com/ledgerwatch/erigon-lib v0.0.0-20211022025716-168b5d673f8a h1:9beBonHZwGO8avC0EfCNmEKfcQtnU12+6wGko/rMDrw=
+github.com/ledgerwatch/erigon-lib v0.0.0-20211022025716-168b5d673f8a/go.mod h1:+Dgxlx2A74QQAp1boH34onSy3k/qDftDiWvGXGC+5FA=
 github.com/ledgerwatch/log/v3 v3.3.1 h1:HmvLeTEvtCtqSvtu4t/a5MAdcLfeBcbIeowXbLYuzLc=
 github.com/ledgerwatch/log/v3 v3.3.1/go.mod h1:S3VJqhhVX32rbp1JyyvhJou12twtFwNEPESBgpbNkRk=
 github.com/ledgerwatch/secp256k1 v0.0.0-20210626115225-cd5cd00ed72d h1:/IKMrJdfRsoYNc36PXqP4xMH3vhW/8IQyBKGQbKZUno=
diff --git a/libmdbx b/libmdbx
index edda9515d67b4e6d3a6b1e95f1a7f7a20b462038..fcb8cd214591f37d2738b83fd9f23f3630844774 160000
--- a/libmdbx
+++ b/libmdbx
@@ -1 +1 @@
-Subproject commit edda9515d67b4e6d3a6b1e95f1a7f7a20b462038
+Subproject commit fcb8cd214591f37d2738b83fd9f23f3630844774