Skip to content

Magazine

Compare
Choose a tag to compare
@johnsnewby johnsnewby released this 29 Nov 09:35
· 53 commits to develop since this release
Version 0.12.0 of æternal, the æternity middleware.

Major changes in this release:
- Transaction-level reloading with the -T option
- Support for decoding of return values from contract calls
- Various bug fixes

Note:

This release includes a time-consuming migration. This will be run on
startup. If you do not wish to have downtime, you can avoid this by running the migration on its own, by reloading a block (easiest way):
`aeternal -H 1`

This release decodes return values from contract calls. To updated your
database, do something like this:
```
for i in `psql -t -U middleware -h localhost mainnet -c "select hash from transactions where tx_type='ContractCreateTx' order by block_height asc"`; do echo $i; ./target/release/aeternal -T $i; done

for i in `psql -t -U middleware -h localhost mainnet -c "select t.hash from transactions t join contract_calls cc on t.id=cc.transaction_id where tx_type='ContractCallTx' and result is null order by block_height asc"`; do echo $i; ./target/release/aeternal -T $i; done
```

Adjusting for your own installation.