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

omitting the validTo and validFrom calls, and then "initialize" the NetworkParams #111

Closed
aleeusgr opened this issue May 29, 2023 · 3 comments

Comments

@aleeusgr
Copy link
Owner

          > Have you tried omitting the `validTo` and `validFrom` calls, and then "initialize" the NetworkParams for emulator use? https://www.hyperion-bt.org/helios-book/api/reference/networkemulator.html#initnetworkparams

Currently the emulator starts at 0, and it's very hard to get it to correspond to real time

Originally posted by @aleeusgr in #106 (comment)

@aleeusgr aleeusgr mentioned this issue May 29, 2023
1 task
@aleeusgr
Copy link
Owner Author

Error: Trace: line 352 of IR                                                                                           
RuntimeError on line 53 of IR: transaction rejected                                                                    
 ❯ RuntimeError.addTrace node_modules/@hyperionbt/helios/helios.js:1636:10                                             
 ❯ RuntimeError.addTraceSite node_modules/@hyperionbt/helios/helios.js:1646:16                                         
 ❯ UplcAnon.call node_modules/@hyperionbt/helios/helios.js:10450:12                                                    
 ❯ UplcProgram.runInternal node_modules/@hyperionbt/helios/helios.js:12842:15                                          
 ❯ UplcProgram.run node_modules/@hyperionbt/helios/helios.js:12883:11                                                  
 ❯ UplcProgram.profile node_modules/@hyperionbt/helios/helios.js:12997:16                                              
 ❯ TxWitnesses.executeRedeemer node_modules/@hyperionbt/helios/helios.js:39762:22                                      
 ❯ TxWitnesses.executeRedeemers node_modules/@hyperionbt/helios/helios.js:39884:17                                     
 ❯ TxWitnesses.executeScripts node_modules/@hyperionbt/helios/helios.js:39810:3
 ❯ Tx.executeRedeemers node_modules/@hyperionbt/helios/helios.js:38208:3

@aleeusgr
Copy link
Owner Author

const newnp = network.initNetworkParams(networkParams);

this line has no effect

@aleeusgr
Copy link
Owner Author

aleeusgr commented May 29, 2023

tx.validFrom(earlierTime);
tx.validTo(laterTime);

commenting any of these lines leads to

Error: Trace: line 16                                                                                                  
Trace: line 157 of IR in '__helios__common__field_0'                                                                   
Trace: line 163 of IR in '__core__headList'                                                                            
RuntimeError on line 163 of IR: empty list

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

No branches or pull requests

1 participant