-
Notifications
You must be signed in to change notification settings - Fork 37
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
Policy sync issue in batch command #281
Comments
This is by design. From https://github.com/neo-project/neo-express/blob/master/docs/command-reference.md#neoxp-policy-sync
|
Batch is designed to get your environment to a known state. Since the policy data on a public net can change, it's not allowed during You can download the current policy to a file with |
my bad, didn't read the issue closely |
This can be closed. |
Did you test it @cschuchardt88 ? |
see #335 |
@Liaojinghui Close this its fixed now, I forgot to link it. |
I've been testing the
neo-devpack-ts
and tried to enhance the NEP17 sample's batch file with apolicy sync
step, in order to do some basic GAS consumption comparisons with MainNet values. Adding this line to the start of theexpress.batch
file and runningneoxp batch express.batch
results in the errorMcMaster.Extensions.CommandLineUtils.UnrecognizedCommandParsingException: Unrecognized command or argument 'sync'
.While troubleshooting, I noticed some other oddities. For example, in this sample repo,
policy get
givesSystem.Exception: Cannot call this method with the flag ReadOnly.
If I move to a fresh directory andneoxp create
, usingpolicy get
gives the expected result. I'd chalk it up to an Express version difference (v3.5.20
), but in the new instance I have the same issue withbatch
.My process:
I get the expected result:
Repeating these steps but replacing the
sync
step withbatch batch.express
, with the batch file containing onlypolicy sync policy.json genesis
, I receive the original error noted above.It's not a blocker for me because I can do everything I want with manual
policy set
steps, but it would be nice to havesync
work in batches for convenience.The text was updated successfully, but these errors were encountered: