question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automine functionality

See original GitHub issue

Overview

Properly support disabling and enabling automine (Sorry I thought there was a ticket for this already but not seeing it and it’s been requested by the community)

Specification

class ChainManager:
    def set_automine(automine_active: bool): ...
class ProviderAPI:
    @raises_not_implemented
    def set_automine(automine_active: bool): ...
  • Support in EthTester if possible.
  • Support in geth if possible (only applies to ephemeral, local geth)
  • Definitely add support to hardhat plugin next
  • Definitely add support to foundry plugin next

Dependencies

Include links to any open issues that must be resolved before this feature can be implemented.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
bantegcommented, Jul 10, 2022

could it be a property with a setter?

>>> chain.automine
True
>>> chain.automine = False
# sends rpc request to disable automine if it was enabled

the description could read something like

Whether to automatically mine a new block after each transaction submitted. Disable automine to pack multiple transactions into a block by hand using chain.mine()

1reaction
unparalleled-jscommented, Nov 7, 2022

I think it’s important to have it feel consistent, but not entirely sure it should be a property either.

Good points!

One other thing I like about methods vs. properties (in general) is that it is easier to add to them without it being as much of a breaking change. For example, adding an optional kwarg-ument.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AutoMine® equipment automation and teleoperation systems
AutoMine ® is a product group for autonomous and remotely operated mobile ... with intelligent functionalities and support for different types of machinery....
Read more >
AUTO MINE - CONVENIENT FEATURE IN BOMBCRYPTO 2 ...
Play the game now to get a free trial of Auto-Mine for 15 daysDetails: ...
Read more >
AUTO MINE - CONVENIENT FEATURE IN BOMBCRYPTO
Features :Hero automatically switches to Work after replenishing e... ... AUTO MINE - CONVENIENT FEATURE IN BOMBCRYPTO.
Read more >
Terraria: How To Turn On Automine Mode (Tutorial) - YouTube
Terraria: How To Turn On Automine Mode (Tutorial) by learning how to ... Terraria Tips on the Terraria Smart Cursor toggle able feature....
Read more >
AutoMine® Concept - the next generation of mining automation
The fully working and autonomous AutoMine ® Concept vehicle is based. ... completely new sensing capabilities and artificial intelligence to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found