Skip to content

Commit

Permalink
Regenerate LCM.
Browse files Browse the repository at this point in the history
The reason for the change is the added costs recalibration. This also led to a host fn succeeding instead of failing.
  • Loading branch information
dmkozh committed Nov 5, 2024
1 parent cb25649 commit 9359ad3
Show file tree
Hide file tree
Showing 8 changed files with 984 additions and 876 deletions.
84 changes: 69 additions & 15 deletions src/testdata/ledger-close-meta-v1-protocol-20-soroban.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@
"v": 0
},
"ledgerHeader": {
"hash": "210017b4a10cb50a87b379056143a1b34639d11832ead16ae73aa07da4b2f7c5",
"hash": "8a3ac41231de9959e976c4fa538e8b95c25aa46ef2917db734a07812d87a61c1",
"header": {
"ledgerVersion": 20,
"previousLedgerHash": "fa06ded1022887f708dfc430803f5c4ed307ae4ff08dc266f10d84a284d0d2a0",
"previousLedgerHash": "2da76fd7a7f80699e319c7e90d669485a49c8e15839b8d52a1543504b2cfa5af",
"scpValue": {
"txSetHash": "b73ddb76d75b2a874252654c440e536df9b672142d0b6322334b52ce01e481b5",
"txSetHash": "a67f3dc3307061e8ef92cea9ad7b406b158d52bf6583b9e618bd49a24a337b55",
"closeTime": 1451692800,
"upgrades": [],
"ext": {
"v": "STELLAR_VALUE_SIGNED",
"lcValueSignature": {
"nodeID": "GDDOUW25MRFLNXQMN3OODP6JQEXSGLMHAFZV4XPQ2D3GA4QFIDMEJG2O",
"signature": "58ce66cce7893b2764555a9afd77967e9d5b7adf08cc0a9e9a60f4f83db4ad6681bb3dec1cafd8ae5d4eb6e0a838d536fa736432f2fa2fb7af0eb6f89a9ef80a"
"signature": "04a835e9de30e03d5ebb4a7028fa6fe00f1a2a72790173ad26da554450284a6ee1b013314560e087e45d8d6beb16e318ee7b7a5ddcd5de7ea98f9e8463010302"
}
}
},
"txSetResultHash": "b3f37714ac4cb6c4afcffb6ea20691b27294e8dc6abdcca96eba2baea8fce8df",
"bucketListHash": "301b92a2e5a5f0c946a9804fbb62e3298f3fd2716182531d8dd7c16b42d2281f",
"txSetResultHash": "64bed80df9936935fb9b1a87e93509753cfa3ccb8c37d86a2d82f93f268a8f42",
"bucketListHash": "f1bceb5934afbb9151614f61a1b4cadd5175dd8589daf6ab62444e458dd0a6c5",
"ledgerSeq": 28,
"totalCoins": 1000000000000000000,
"feePool": 687415,
"feePool": 707471,
"inflationSeq": 0,
"idPool": 0,
"baseFee": 100,
Expand All @@ -49,7 +49,7 @@
"txSet": {
"v": 1,
"v1TxSet": {
"previousLedgerHash": "fa06ded1022887f708dfc430803f5c4ed307ae4ff08dc266f10d84a284d0d2a0",
"previousLedgerHash": "2da76fd7a7f80699e319c7e90d669485a49c8e15839b8d52a1543504b2cfa5af",
"phases": [
{
"v": 0,
Expand Down Expand Up @@ -1495,16 +1495,17 @@
"result": {
"transactionHash": "1dd58e08056b81c30a5dd17447a2c0b449f15fca73d7e8fbdacb0c58189581c3",
"result": {
"feeCharged": 42946,
"feeCharged": 63002,
"result": {
"code": "txFAILED",
"code": "txSUCCESS",
"results": [
{
"code": "opINNER",
"tr": {
"type": "INVOKE_HOST_FUNCTION",
"invokeHostFunctionResult": {
"code": "INVOKE_HOST_FUNCTION_RESOURCE_LIMIT_EXCEEDED"
"code": "INVOKE_HOST_FUNCTION_SUCCESS",
"success": "c941f2e98c008dadb59ca9f1c5da74b9e4492505c195891e97f9251df6fa8f5c"
}
}
}
Expand Down Expand Up @@ -1653,7 +1654,60 @@
}
}
],
"operations": [],
"operations": [
{
"changes": [
{
"type": "LEDGER_ENTRY_CREATED",
"created": {
"lastModifiedLedgerSeq": 28,
"data": {
"type": "CONTRACT_DATA",
"contractData": {
"ext": {
"v": 0
},
"contract": "CCOKSYPZJ2B3244CEMLBGUGWPMQ3BLES6AKHRQCX2XF27K4HDBW2LKDF",
"key": {
"type": "SCV_LEDGER_KEY_CONTRACT_INSTANCE"
},
"durability": "PERSISTENT",
"val": {
"type": "SCV_CONTRACT_INSTANCE",
"instance": {
"executable": {
"type": "CONTRACT_EXECUTABLE_WASM",
"wasm_hash": "fc644715caaead746e6145f4331ff75c427c965c20d2995a9942b01247515962"
},
"storage": null
}
}
}
},
"ext": {
"v": 0
}
}
},
{
"type": "LEDGER_ENTRY_CREATED",
"created": {
"lastModifiedLedgerSeq": 28,
"data": {
"type": "TTL",
"ttl": {
"keyHash": "c92299f9bdb7a8e6c53092d8f64b92f726eaec5a700608adc80c55ad7824f637",
"liveUntilLedgerSeq": 47
}
},
"ext": {
"v": 0
}
}
}
]
}
],
"txChangesAfter": [
{
"type": "LEDGER_ENTRY_STATE",
Expand Down Expand Up @@ -1713,7 +1767,7 @@
"type": "ACCOUNT",
"account": {
"accountID": "GA2NXNEE2MHWGQP5XXACPYG2BDZFPKGYPFNST5V3ZZN75NSLQAEXX7CU",
"balance": 399957054,
"balance": 399936998,
"seqNum": 51539607553,
"numSubEntries": 0,
"inflationDest": null,
Expand Down Expand Up @@ -1762,8 +1816,8 @@
},
"events": [],
"returnValue": {
"type": "SCV_BOOL",
"b": "FALSE"
"type": "SCV_ADDRESS",
"address": "CCOKSYPZJ2B3244CEMLBGUGWPMQ3BLES6AKHRQCX2XF27K4HDBW2LKDF"
},
"diagnosticEvents": []
}
Expand Down
12 changes: 6 additions & 6 deletions src/testdata/ledger-close-meta-v1-protocol-20.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@
"v": 0
},
"ledgerHeader": {
"hash": "26e7920e014e57fc78ee8156d028ac618573034111c6387ccf3cd08de506071f",
"hash": "a50c06f398679584d4acff68de5130502114df913f41c270a4bce9e1d6cd5c36",
"header": {
"ledgerVersion": 20,
"previousLedgerHash": "15a912e7b36da55ab1d1f6735e0a8dd659876d97d9231fc48e31bebb0819a456",
"previousLedgerHash": "ab3ae955a234c8b03bbd42f5a7ba9b98989ea9fa6e380b00d9bb47abc11fd9f7",
"scpValue": {
"txSetHash": "163a70a902ab200e527ad7bd92678c11591333cfe6f6258985f2d4ba98235961",
"txSetHash": "748fee17bde220a1e44a917ac6ae9cf70bedb749bc2a2bf440fffbe04d7a46cf",
"closeTime": 0,
"upgrades": [],
"ext": {
"v": "STELLAR_VALUE_SIGNED",
"lcValueSignature": {
"nodeID": "GDDOUW25MRFLNXQMN3OODP6JQEXSGLMHAFZV4XPQ2D3GA4QFIDMEJG2O",
"signature": "b05f325722618b96b61fab772c6446cc50c504b3394e0991fa3a574564d14fa05fb420a1a97897af50fbdb82f906580616171c7071ef9b61a3dc482365d1560e"
"signature": "db221f42903acae8fa8f38251516df81257687c301729f00fe8c9f377af298181a8f18b9b5a690f3c6c05f8fe168c30081d1ad0c4b8dcbd34f194300e9aa830a"
}
}
},
"txSetResultHash": "249b974bacf8b5c4a8f0b5598194c1b9eca64af0b5c1506daa871c1533b6baac",
"bucketListHash": "41e6f842778e7b6b81576c29fefc222c5ff909241a3fcf7503ed3322222b92b5",
"bucketListHash": "7c28bf01c1eb9bf17fae213218f9cffeea048d5b261b57bb1092ee39a3afe1c3",
"ledgerSeq": 7,
"totalCoins": 1000000000000000000,
"feePool": 800,
Expand All @@ -49,7 +49,7 @@
"txSet": {
"v": 1,
"v1TxSet": {
"previousLedgerHash": "15a912e7b36da55ab1d1f6735e0a8dd659876d97d9231fc48e31bebb0819a456",
"previousLedgerHash": "ab3ae955a234c8b03bbd42f5a7ba9b98989ea9fa6e380b00d9bb47abc11fd9f7",
"phases": [
{
"v": 0,
Expand Down
Loading

0 comments on commit 9359ad3

Please sign in to comment.