This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
v7.0.4 #2829
MicaiahReid
announced in
Releases
v7.0.4
#2829
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Highlights
Fixes
Miscellaneous
Changelog
Known Issues
Future Plans
We've got a few more fixes in this release! But much more importantly we'd like to welcome @jeffsmale90 to the Ganache team! He has hit the ground running and is responsible for three out of five bug fixes today. Welcome to the team, Jeff! We'd also like to thank our issue openers (@PeterYinusa, @robsmith11), PR contributors (@MatthieuScarset), and technical consultants (@cds-amal). Thank you for being a part of this community!
We've changed 26 files across 8 merged pull requests, tallying 584 additions and 150 deletions, since our last release.
Disable Rage Quit; Fix Regular Shutdown
Ganache v7 was released with a lovely feature that prevented Ganache from shutting down when some applications (including MetaMask) connect to Ganache and regularly poll for data. This feature was shipped to provide our users with some much needed practice expressing negative emotions as they repeatedly attempt to shut down Ganache, and Ganache says that it recognizes the shutdown signal but fails to shutdown.
We are, of course, kidding. This issue had multiple causes which are now fixed in this release. Ganache now facilitates graceful shutdown in cases where persistent HTTP connections previously held Ganache open. Thank you all for your patience in waiting for a fix on this issue. 🙏
back to top
host
param when passed inserver.listen
(#2397)fix: use
host
param when passed inserver.listen
(#2397)Ganache previously ignored the
--host
parameter and would always bind to host127.0.0.1
. It now binds to the given host as expected.back to fixes
fix: correctly pad / truncate in JSON-RPC types, add tests to ethereum-address and json-rpc-data (#2716)
The internal
Address
class previously wasn't properly padding compressed addresses. This would cause some RPC methods, likeevm_addAccount
, to add invalid Ethereum addresses. The class will now pad addresses to the correct length, allowing this behavior:which will in turn allow:
back to fixes
fix: parse port to number type if provided in as string (#2610)
Ganache now allows the port number passed via
ganache --port
to be a string or a number. This allows the use case where the port is passed directly from args without parsing.back to fixes
fix: close http connections after http-server.close() has been called (#2667)
As stated in our highlights, Ganache now facilitates graceful shutdown in cases where persistent HTTP connections previously held Ganache open. In the worst case where no requests are received over the persistent connection, Ganache will timeout after 10 seconds.
back to fixes
fix: update @trufflesuite/uws-js-unofficial dependency to silence node12 warnings (#2807)
If you've been using Ganache with nodejs 12, you've probably been bothered by the annoying error stating:
This change silences the warning to give you the uncluttered CLI you deserve.
back to fixes
back to top
ci: fix test timeouts (#2503)
Tests that used to pass in CI started failing in GitHub Actions due to timeouts. We verified there were no performance regressions on our part, and that these timeouts were caused by GitHub Action runners becoming slower over time. We bumped the test timeout default value to 5 seconds.
back to miscellaneous
refactor: rearrange miner for easier readability (#2514)
We noticed some duplicate branches in a method and simplified it. There's nothing interesting to see here... 🙂
back to miscellaneous
docs: fix example in README (#2789)
The README.md example showing programmatic usage had a bug causing it to fail. The example now works as intended. Thanks again for pointing this out, @MatthieuScarset!
back to miscellaneous
back to top
host
param when passed inserver.listen
#2397 fix: usehost
param when passed inserver.listen
(@davidmurdoch)back to top
Top Priority:
eth_feeHistory
RPC endpoint (#1470)evm_mine
andminer_start
don't respect --mode.instamine=eager (#2029)Coming Soon™:
debug_traceTransaction
may crash on Node.js v12 (#2106)evm_setAccountNonce
is race-conditiony (#1646)@ganache/filecoin@alpha
doesn't work withganache@alpha
(#1150)eth_createAccessList
RPC method (#1056)Cannot get state root with uncommitted checkpoints
error when starting ganache forking with infura RPC endpoint (#618)back to top
blockHash
to JSON-RPC methods which accept a default block parameter (#973)evm_setCode
andevm_setStorageAt
RPC methods (#649)evm_mine
to return the new block (#536)back to top
Open new issues (or join our team) to influence what we gets implemented and prioritized.
💖 The Truffle Team
This discussion was created from the release v7.0.4.
Beta Was this translation helpful? Give feedback.
All reactions