-
Notifications
You must be signed in to change notification settings - Fork 808
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
confirming transactions on regtest #326
Comments
'use strict'; process.title = 'bcoin'; const assert = require('assert'); const node = new FullNode({ process.on('unhandledRejection', (err, promise) => { (async function connection() { |
I'll include a better example with a variety consecutive blocks / wallet confirms. But running this should add a block / tx to the chain. |
Thanks @Rojii! That code is very helpful and I can see the transactions in my newly mined blocks now. But like you said, the wallet transactions aren't hooked up yet, so I'm looking forward to your second example. |
try this one out , |
I'm going to close this for now @yayitswei. We'll hopefully try and get a guide and script up as well in the near future up on bcoin.io. |
I forgot to reply, but your new code was helpful too- thanks! |
No Problem, I'll include a new guide in the next week with a much more functions. |
@Rojii I tried you code, it doesnt seem to solve the problem tho. I looks like the transaction is added to the chain but I dont get any confirmation.
I tried to create blocks manually with the client but that doesnt work either. Any idea what im doing wrong? |
If you want me to add manual code for adding blocks by height / entry (increment by 1 in height or w.e) let me know. But the code above will add all of the transactions correctly |
Could you point me to an example that mines on regtest and confirms transactions? This is a great start but I'm using
miner.createJob
andjob.mineAsync()
and finallychain.add(block)
as suggested and it's not adding any transactions I've sent previously into the new block. When I look up the transaction it has 0 confirmations.Thanks for your help!
The text was updated successfully, but these errors were encountered: