Introducing the HTLC object type

This commit is contained in:
Nelson R. Perez 2019-07-30 16:40:19 -05:00
parent d82bc6add1
commit 39bcf78add
2 changed files with 6 additions and 0 deletions

View file

@ -80,6 +80,8 @@ public class GrapheneObject {
return ObjectType.WORKER_OBJECT; return ObjectType.WORKER_OBJECT;
case 15: case 15:
return ObjectType.BALANCE_OBJECT; return ObjectType.BALANCE_OBJECT;
case 16:
return ObjectType.HTLC_OBJECT;
} }
case IMPLEMENTATION_SPACE: case IMPLEMENTATION_SPACE:
switch(type){ switch(type){

View file

@ -20,6 +20,7 @@ public enum ObjectType {
VESTING_BALANCE_OBJECT, VESTING_BALANCE_OBJECT,
WORKER_OBJECT, WORKER_OBJECT,
BALANCE_OBJECT, BALANCE_OBJECT,
HTLC_OBJECT,
GLOBAL_PROPERTY_OBJECT, GLOBAL_PROPERTY_OBJECT,
DYNAMIC_GLOBAL_PROPERTY_OBJECT, DYNAMIC_GLOBAL_PROPERTY_OBJECT,
ASSET_DYNAMIC_DATA, ASSET_DYNAMIC_DATA,
@ -53,6 +54,7 @@ public enum ObjectType {
case VESTING_BALANCE_OBJECT: case VESTING_BALANCE_OBJECT:
case WORKER_OBJECT: case WORKER_OBJECT:
case BALANCE_OBJECT: case BALANCE_OBJECT:
case HTLC_OBJECT:
space = 1; space = 1;
break; break;
case GLOBAL_PROPERTY_OBJECT: case GLOBAL_PROPERTY_OBJECT:
@ -123,6 +125,8 @@ public enum ObjectType {
case BALANCE_OBJECT: case BALANCE_OBJECT:
type = 15; type = 15;
break; break;
case HTLC_OBJECT:
type = 16;
case GLOBAL_PROPERTY_OBJECT: case GLOBAL_PROPERTY_OBJECT:
type = 0; type = 0;
break; break;