Skip to content

Commit

Permalink
Storage functions now are using categories
Browse files Browse the repository at this point in the history
  • Loading branch information
Abwasserrohr committed May 28, 2019
1 parent 2371578 commit d04a62e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions STEEM.CRAFT/core/functions/getOpsInBlock.sk
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function getOpsInBlock(blocknumber:number,onlyvirtual:boolean=false) :: object:
#
# > If the block caching is not disabled.
else:
set {_tmp} to getGeneralStorageData("steemblocks","%{_blocknumber}%-%{_onlyvirtual}%")
set {_tmp} to getGeneralStorageData("steemblocks","%{_blocknumber}%-%{_onlyvirtual}%","b")
#
# > If the block is cached, decompress the base64 string and deserialize it
# > to make it a SteemJ object again.
Expand All @@ -35,5 +35,5 @@ function getOpsInBlock(blocknumber:number,onlyvirtual:boolean=false) :: object:
else:
set {_steemj} to new SteemJ()
set {_block} to {_steemj}.getOpsInBlock({_blocknumber},{_onlyvirtual})
saveGeneralStorageData("steemblocks","%{_blocknumber}%-%{_onlyvirtual}%",compressBase64(serialize({_block})))
saveGeneralStorageData("steemblocks","%{_blocknumber}%-%{_onlyvirtual}%","b",compressBase64(serialize({_block})))
return {_block}

0 comments on commit d04a62e

Please sign in to comment.