Neo: New API for NeoContract: System.Runtime.Platform

Created on 25 Jun 2018  路  4Comments  路  Source: neo-project/neo

Gets the platform on which the contract is running.

For example:

  • On Neo, it returns "NEO".
  • On Ontology, it returns "Ontology".
enhancement

Most helpful comment

What should return this API? Will be a deterministic result?

On Neo, it returns "NEO". On other platforms, it returns the name of the appropriate platform. For example: "Ontology".

All 4 comments

What should return this API? Will be a deterministic result?

What should return this API? Will be a deterministic result?

On Neo, it returns "NEO". On other platforms, it returns the name of the appropriate platform. For example: "Ontology".

I think I got it.
If it is my private chain, returns "Babylon", for example.
And then, I, sporadically, publish some state of my blockchain in the Neo Original Public one.

Will Neo 3.0 come with interchain communication using a similar resource Erik? This way one platform could declare its "trusted" buddies, and execute Neo opcodes "outside" in a trusted fashion.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shargon picture shargon  路  4Comments

garrey332 picture garrey332  路  3Comments

realloc picture realloc  路  4Comments

vncoelho picture vncoelho  路  3Comments

Tommo-L picture Tommo-L  路  4Comments