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

update oracleservice wallet #473

Merged
merged 7 commits into from
Jan 19, 2021
Merged

Conversation

bettybao1209
Copy link
Contributor

No description provided.

@bettybao1209 bettybao1209 changed the title update walelt update wallet Jan 19, 2021
@bettybao1209 bettybao1209 changed the title update wallet update oracleservice wallet Jan 19, 2021
@cloud8little
Copy link
Contributor

Set case2.json as the oracle node

config.json under neo-cli directory:

{
  "ApplicationConfiguration": {
    "Logger": {
      "Path": "Logs_{0}",
      "ConsoleOutput": true,
      "Active": true
    },
    "Storage": {
      "Engine": "LevelDBStore"
    },
    "P2P": {
      "Port": 51001,
      "WsPort": 51002
    },
    "UnlockWallet": {
      "Path": "wallet_1.json",
      "Password": "11111111",
      "StartConsensus": false,
      "IsActive": false
    },
    "PluginURL": "https://github.com/neo-project/neo-plugins/releases/download/v{1}/{0}.zip"
  }
}

config.json under Plugins\OracleService:

{
  "PluginConfiguration": {
    "Nodes": ["http://localhost:10332"],
    "Wallet": "case2.json",
    "MaxTaskTimeout": 432000000,
    "AllowPrivateHost": true,
    "AllowedContentTypes": [ "application/json" ],
    "Https": {
      "Timeout": 5000
    }
  }
}

start neo-cli, and input start oracle.

2882ea9b902257432ce31965031327f

@cloud8little
Copy link
Contributor

Besides, this need to be sync with the latest neo.

var engine = ApplicationEngine.Create(TriggerType.Verification, tx, snapshot.Clone());
engine.LoadContract(oracleContract, "verify", CallFlags.None, true);

@superboyiii superboyiii mentioned this pull request Jan 19, 2021
36 tasks
@bettybao1209
Copy link
Contributor Author

start neo-cli, and input start oracle.

2882ea9b902257432ce31965031327f

The wallet should be the current wallet in cli rather than specified in oracle's config file.

shargon
shargon previously approved these changes Jan 19, 2021
@shargon shargon self-requested a review January 19, 2021 08:50
shargon
shargon previously approved these changes Jan 19, 2021
@cloud8little
Copy link
Contributor

retest.

@cloud8little
Copy link
Contributor

Test Passed.

  1. CN node, start oracle with opening the oracle node wallet, and then start oracle. deal with oracle request and persisting block.

f11e54855f20e764d9a509ffed3db25

  1. Normal node. when config wallet is inactive, start oracle failed; then open wallet manually, start oracle successful.

491d84570ff0687c626b3e5a0657ac3

cloud8little
cloud8little previously approved these changes Jan 19, 2021
chenzhitong
chenzhitong previously approved these changes Jan 19, 2021
@shargon shargon merged commit fd52f21 into neo-project:master Jan 19, 2021
@bettybao1209 bettybao1209 deleted the update-wallet branch January 19, 2021 10:27
joeqian10 pushed a commit to joeqian10/neo-modules that referenced this pull request Apr 7, 2021
* update walelt

* redefine walletProvider

* syc neo

* Clean settings

* check wallet if null

* Update OracleService.cs

Co-authored-by: Shargon <shargon@gmail.com>
Co-authored-by: Erik Zhang <erik@neo.org>
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

Successfully merging this pull request may close these issues.

5 participants