Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create some tests that can write transactions to Testnet and/or MainNet #23

Open
msgilligan opened this issue Jan 22, 2015 · 3 comments

Comments

@msgilligan
Copy link
Member

Specifically, with a hot wallet of (Test)BTC and MSC and/or TMSC, it would be nice to be able to take some/all of the transactions in the STO TSV file and put them out on TestNet and/or MainNet.

@dexX7
Copy link
Member

dexX7 commented Jan 22, 2015

It's an interesting idea, especially because those "test transactions" could be used as "checkpoints" within Master Core.

The block generation would have to be replaced with some "blockchain watcher" and a callback that is triggered, once a new block is mined and the previous steps confirmed.

A very important point in my opinion would be to prevent accidental execution of such a "test" ... which once happend to me with some older Master Core regtests that started a bunch of mastercored instances, but used the default bitcoin.conf. Luckily this was on testnet and the only notable effect was to end up with a lot of junk addresses in the wallet.. :)

@msgilligan
Copy link
Member Author

Yeah, I'm not sure how we could make a test fixture (Spock extension?) that could match "when" clauses with "then" clauses after the appropriate blocks have been generated. I should pose that on the Spock list.

Anyway, this is lower priority for me than finishing the RegTest stuff, but I wanted to create the issue so we can get back to it later.

@dexX7
Copy link
Member

dexX7 commented Jan 23, 2015

I was actually thinking about tweaking generateBlock() somehow, such that it doesn't generate a block, but queries the blockchain and returns, once a new block is mined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants