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

getSteemContent can now also load older versions of content #23

Merged
merged 2 commits into from Jun 18, 2019

Conversation

Abwasserrohr
Copy link
Owner

@Abwasserrohr Abwasserrohr commented Jun 18, 2019

This pull request aims to add the capability to load any older version of the world stored on blockchain by seachring the account history.

What is expected:

A function called getSteemWorldRevisions(steemname:text,worldname:text) should return a HashMap with the block number and world data of each world version.

Any version should be possible to load using /swload <block number>, /swload should still load the current version. Of course, the functions to load and save have to support it to allow other functions later on using it for more customized menues.

  • Works as expected
  • Loads without errors

In some cases, it is useful to get an older version of content, by adding a blockid, in which the older version is stored, itt will return the older version instead of the new one.

Call it with getSteemContent(Immanuel94,"test",false,200) to get the post with the permlink "test" out of the block number 200. If it doesn't find anything, it will set the metadata result to nothing.

Also added optional async to getSteemContent. If the 3rd parameter is false, the function will run without a thread.
@Abwasserrohr Abwasserrohr added enhancement New feature or request steemworlds.sk labels Jun 18, 2019
@Abwasserrohr Abwasserrohr self-assigned this Jun 18, 2019
…upport

This commit allows to check a world for older versions using getSteemWorldRevisions and also loading these older versions.
@Abwasserrohr Abwasserrohr merged commit 5f99923 into master Jun 18, 2019
@Abwasserrohr Abwasserrohr deleted the Abwasserrohr-revisionload branch June 18, 2019 12:11
@Abwasserrohr Abwasserrohr added this to World loading process in steemworlds.sk Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request steemworlds.sk
Projects
steemworlds.sk
  
World loading process
Development

Successfully merging this pull request may close these issues.

None yet

1 participant