Table of Contents
Release Notes: 8.6
Changes since 8.5
Added
- context: Added
get_evm_portal_datasourcemethod to accessevm.sqd_portaldatasources from handlers and hooks with a precise type. - context:
ctx.execute_sql_script(..., dedicated_connection=True)runs the scripts on a separate PostgreSQL connection, so a long statement likeREFRESH MATERIALIZED VIEWin a job no longer pauses indexing. - database: Postgres session settings like
synchronous_commitorwork_memcan be set indatabase.server_settingsand apply to every DipDup connection, including indexing transactions that aSETfrom a hook never reaches; values can be strings, numbers or booleans (on/off);search_path(useschema_nameinstead) andclient_encodingare rejected in any letter case. - evm.sqd_portal: Added a new datasource backed by the SQD Portal (
portal.sqd.dev), a streaming alternative to the v2.archiveevm.subsquidgateway. - evm.subsquid, starknet.subsquid, substrate.subsquid: Added
api_keyoption to authenticate withv2.archive.subsquid.iogateways, which require a key since 2026-05-19. - project:
dipdup newcan add GitHub Actions workflows (lint, config check, Docker image build) and a VS Code debugger config; existing projects get them by settingci: githuboride: vscodeinconfigs/replay.yamland runningdipdup init. - watchdog: The first warning about a stuck callback or transaction includes the chain of coroutines the task is waiting on.
- watchdog:
ctx.watchdog.heartbeatandctx.watchdog.resetaccept an optionalnameto keep a separate countdown for each name.
Fixed
- cli: A crash report that cannot be written (read-only or full disk) no longer replaces the actual error; DipDup logs a warning and skips the report.
- cli: A crashed
dipdup runno longer logs a spuriousRuntimeError: aclose()next to the actual error, which reached Sentry as a separate issue. - cli:
dipdup newcreates the<package> -> .symlink in the new project, somypyresolves package imports and handlers are formatted the same as by a latermake format lintin the project root. - cli:
dipdup self installno longer ignores--path,--refand--prewhen DipDup is already installed. - cli:
dipdup self updateexplains how to update installations not managed byuv tool. - coinbase: The datasource calls
api.exchange.coinbase.com, soget_candlesworks again; the retiredapi.pro.coinbase.comanswered every request with 503. - coinbase:
get_candlesno longer returns the same candle twice when the range spans more than 300 candles. - coinbase:
get_oracle_pricesraisesUnsupportedFeatureErrorwithout making a request, since Coinbase has deprecated its Price Oracle API. - config:
buffer_sizeno longer conflicts with theadvanced.rollback_depthvalue that validation derives itself, which made the option unusable. - config:
first_levelandlast_levelset both in a template and where it is used (anindexesentry orctx.add_index) no longer produce a level that is neither of the two (500 and 1001 gave 1021, skipping blocks); the value set where the template is used wins. - config:
tezos.headandtezos.operations_unfilteredindexes created from a template (inindexesor withctx.add_index) no longer fail withhandlers: Unexpected keyword argument. - context: A database connection lost in the middle of a rollback no longer leaves the reverted data under the old index level, which made the index skip the new branch after a restart.
- context: An index is no longer rewound when the rollback was skipped because reindexing is ignored.
- context:
ctx.rollbackreverts all changes made above the target level. - datasources: A realtime connection closed by the server with an error (e.g. TzKT's
ClientTimeoutInterval) is reconnected instead of crashing the indexer withFrozenInstanceError. - evm.events: Fixed parsing nested event payloads with fields named after Python keywords.
- evm.node: A project with both
evm.eventsandevm.transactionsindexes on one node datasource opens twonewHeadssubscriptions and gets every head announced twice; the second announcement no longer crashes the datasource with aKeyErrornor fires a phantom rollback. - evm.node: Omit unset
address/topicsfromlogssubscriptions instead of sendingnull, which strict JSON-RPC nodes (Octez/Etherlink EVM) reject. - hasura: Views created without reindexing (e.g. by an
on_restartSQL script) appear in the GraphQL API after the next start instead of only afterhasura configure --force. - http: Requests rejected with a 4xx status (except 408 and 429) are no longer retried, so errors like 404 or 400 reach the caller immediately instead of after the full retry backoff.
- http: Treat HTTP 503 responses as rate limiting, applying
ratelimit_sleepbackoff like 429; many gateways shed load with 503 instead of 429. - http:
Retry-Afteron 429 and 503 responses is honored both as seconds and as an HTTP date; when it is longer than two minutes (orratelimit_sleep, if larger), the request fails right away instead of waiting that long between every retry. - index: A chain reorg received while the index is falling behind the datasource is no longer dropped when the index resyncs, which left the data of the orphaned blocks in the database.
- index: An index that reached its
last_levelno longer keeps the other indexes from switching to realtime and no longer collects realtime messages. - index: Rollbacks are no longer skipped when realtime messages are still queued.
- ipfs: The default
urlis nowhttps://ipfs.filebase.io/ipfs, sinceipfs.iono longer serves requests; it is a public gateway for testing and light usage, so set your ownurlfor production. - metrics: Progress is no longer stuck at
estimating...for indexes that skip history or when an index is added while others are syncing, and no longer goes negative after a rollback. - models:
bulk_createcalled with a generator inserts the objects instead of nothing. - project: A project created with
dipdup newfrom thedemo_tezos_etherlinktemplate uses the chosen package name indipdup.yaml. - report: Fixed
KeyError: 'stacktrace'when saving a crashdump for a chained exception whose__context__/__cause__cause has no traceback. - sentry: Fixed crash on init with sentry-sdk 2.61+, where
DEFAULT_MAX_VALUE_LENGTHbecameNone. - sentry: Set process-wide
dipdup.*tags on the global scope so they appear on all error reports. - subscriptions: The datasource sync level is kept on disconnect, so the indexer no longer crashes with
Neither current nor sync level is knownand metrics no longer freeze while reconnecting. - tezos.operations: Handlers get
Nonefor every missingoptionalpattern item, including trailing ones, instead of failing withTypeError; a handler whose required item is missing at the end of a group is no longer called; a pattern of only optional items is no longer called when none of them matched and no longer hangs the indexer. - tezos.operations: Handlers with a pattern item without
entrypointare called for any entrypoint of the contract, not onlydefault; atezos.operations_unfilteredindex next to a filtered one gets every transaction in realtime, not only those with the neighbours' entrypoints. Affected projects start getting handler calls that were silently skipped before; levels already indexed are not revisited, so reindex to get the missed ones. - tezos.operations: Transactions unrelated to any indexed address or code hash are skipped before matching also when only addresses or only code hashes are set; a transaction pattern without
sourceanddestinationgets every transaction with any combination of filters. - tezos.token_balances: Handlers with
token_idget balances during sync; the filter was sent to TzKT as its internal token ID, so the request matched nothing. The whole snapshot is fetched again on the next start, so the missed balances arrive without a reindex. - tezos.token_balances: Handlers with different filters in one index no longer miss balances during sync: a
contractortoken_idfilter is sent to TzKT only when every handler of the index sets it, since TzKT requires both to match at once. The whole snapshot is fetched again on the next start, so the missed balances arrive without a reindex. - tezos.token_transfers: Handlers with
token_idget transfers during sync; the filter was sent to TzKT as its internal token ID, so the request matched nothing. Levels already indexed are not revisited, so reindex to get the missed transfers. - tezos.token_transfers: Handlers with different filters in one index no longer miss transfers during sync: a
contract,token_id,fromortofilter is sent to TzKT only when every handler of the index sets it, since TzKT requires all of them to match at once. Levels already indexed are not revisited, so reindex to get the missed transfers. - tezos.tzkt: A TzKT outage after realtime has started no longer crashes the indexer with
RuntimeError: The socket was never run. - tezos.tzkt: A realtime connection is reconnected after a failed negotiation instead of crashing the indexer: a refused connection crashed it at once, an expired connection id after about ten drops.
- tezos.tzkt: A subscription request lost with a dropped realtime connection is sent again after reconnecting instead of blocking the indexer forever.
- tezos.tzkt: All buffered messages of a rolled-back level are dropped; one message per level could survive the reorg and be processed later.
- transactions: A rollback that fails after the database connection is lost no longer replaces the error that caused it; the rollback error is attached to it as a note.
- transactions: Every index keeps model updates for its own
rollback_depthlevels instead of the most advanced index deciding for all of them. - watchdog: A long-running callback is no longer hidden by other callbacks starting or finishing.
- watchdog: A transaction stuck in one index is no longer hidden by other indexes finishing theirs, so
action: exceptionfires as configured. - watchdog: Callback warnings name the stuck handler with its index, or the stuck hook; transaction warnings name the index and level when the transaction belongs to an index.
- watchdog: Hooks running as daemon jobs are no longer reported by the
callbacktrigger, andctx.watchdog.heartbeat(WatchdogTrigger.callback)inside them does nothing.
Changed
- codegen: Empty-object Michelson
unitfields no longer accept non-empty objects. - codegen: Fields named after Python builtins are aliased (
boolbecomesbool_); update attribute access in handlers after regenerating types. - codegen: Nullable required fields are no longer optional; a payload without the key fails validation.
- codegen: Root models generated from non-nullable schemas no longer accept
None. - datasources: Realtime connection failures are logged at
WARNINGlevel asRealtime connection failed: ...instead ofERRORasWebsocket connection error: ...; alerts on the old message no longer fire. - datasources: The realtime
http.retry_countlimit counts consecutive connection failures instead of failures over the whole lifetime of the process, and also applies toevm.nodeand tosubstrate.node, which used to reconnect forever; a connection lost before all subscriptions are confirmed counts as failed. - demo_tezos_etherlink: Replaced decommissioned parisnet contracts with shadownet ones.
- metrics: Progress in the status line and in
dipdup_progress,dipdup_levels_indexed_total,dipdup_levels_totalcovers the whole range of every index, from itsfirst_levelto the head, instead of the levels left at the start of the current run; after a restart at 90% of the history it continues from 90% instead of starting from zero. - tezos.tzkt: Replaced decommissioned ghostnet with shadownet in known testnet URLs and the
demo_tezos_eventsproject. - tezos.tzkt: The realtime connection uses
http.connection_timeout(60 seconds by default) instead of a hardcoded 30 seconds. - watchdog: A regular (non-daemon) job or hook that runs longer than the
callbacktimeout is now reported, while previously any other callback starting or finishing hid it; anatomic: trueone is also reported by thetransactiontrigger. To allow it, raise the timeout or callctx.watchdog.reset(WatchdogTrigger.callback)inside it, plusctx.watchdog.reset(WatchdogTrigger.transaction)for an atomic one. - watchdog: The
websockettrigger is now armed by default: if an open realtime connection delivers no messages for its timeout (60 seconds unless configured), DipDup warns about it; a datasource without subscriptions is not watched. Previously DipDup never armed it, so it did not fire. If you setwebsocket: action: exception, such a silence now stops the indexer. - watchdog:
ctx.watchdog.heartbeat(trigger)andctx.watchdog.reset(trigger)without a name act on the callbacks or transactions of that trigger watched in the calling code and the tasks it spawns, not on every callback or transaction at once. Inside a watched callback or transaction with none of that kind running, a name-less heartbeat does nothing: for example,heartbeat(WatchdogTrigger.transaction)in a non-atomic hook orheartbeat(WatchdogTrigger.websocket)in any callback. Outside any watched callback or transaction, the trigger keeps a single countdown as before.
Performance
- index: Indexes that match nothing at a realtime level no longer save their level one by one; the levels of all such indexes are saved in a single statement after every dispatcher loop.
Security
- deps: Updated
aiohttpto 3.14.5 andmsgpackto 1.2.4 to fix published advisories, including unbounded memory use in both (GHSA-2g87-pp6c-29x5, GHSA-j586-36cw-2gc2). - deps: Updated
datamodel-code-generatorto 0.71.0 to fix code injection via crafted JSON schemas (GHSA-5578-w22f-pfx9).
See you soon! 👋
DipDup is a free open-source software created by the community and for the community. Join our socials to discuss this release, ask any questions, or participate in development.
Help and tips -> Join our Discord
Ideas or suggestions -> Issue Tracker
GraphQL IDE -> Open Playground