XRPLF / rippled

Decentralized cryptocurrency blockchain daemon implementing the XRP Ledger protocol in C++
https://xrpl.org
ISC License
4.48k stars 1.45k forks source link

Transaction meta data DeletedNode has PreviousFields and the FinalFields Taker object value are 0 (Version: 2.0.0) #4911

Open Try-Parser opened 4 months ago

Try-Parser commented 4 months ago

Issue Description

Transaction meta data DeletedNode has PreviousFields and the FinalFields Taker object value are 0 TransactionType is OfferCreate


{
      "DeletedNode": {
          "FinalFields": {
              "Account": "*************************************",
              "BookDirectory": "0DC84E19D9426E8856119DFE382D8B90EAAD4522A601F7F34A049E57D6354000",
              "BookNode": "0",
              "Flags": 0,
              "OwnerNode": "0",
              "PreviousTxnID": "D4CD4433C39F01FB6E2DABB15905297BEC32D71D43D2D3FEE4B82CCD677B2577",
              "PreviousTxnLgrSeq": 59687,
              "Sequence": 3,
              "TakerGets": "0",
              "TakerPays": {
                  "currency": "BTC",
                  "issuer": "*************************************",
                  "value": "0"
              }
          },
          "LedgerEntryType": "Offer",
          "LedgerIndex": "C27230EB218B5D3F28F0CA5BA68F73BA09EB44A159F14290283E5A8470680508",
          "PreviousFields": {
              "TakerGets": "200000000",
              "TakerPays": {
                  "currency": "BTC",
                  "issuer": "*************************************",
                  "value": "0.0026"
              }
          }
      }
  }

Steps to Reproduce

Expected Result

As what the documentation said DeletedNode should not have any PreviousField

Actual Result

I supposedly think deletednode should not have 0 values and doesn't have PreviousField and also curious what is it happening ?

Environment

{
    "api_version": 1,
    "id": "my_request",
    "result": {
        "info": {
            "build_version": "2.0.0",
            "complete_ledgers": "31819-414624",
            "hostid": "CORE",
            "initial_sync_duration_us": "3133895",
            "io_latency_ms": 1,
            "jq_trans_overflow": "0",
            "last_close": {
                "converge_time_s": 2,
                "proposers": 2
            },
            "load_factor": 1,
            "peer_disconnects": "0",
            "peer_disconnects_resources": "0",
            "peers": 2,
            "ports": [
                {
                    "port": "80",
                    "protocol": [
                        "ws"
                    ]
                },
                {
                    "port": "51235",
                    "protocol": [
                        "peer"
                    ]
                }
            ],
            "pubkey_node": "*************************************",
            "server_state": "full",
            "server_state_duration_us": "1148990644768",
            "state_accounting": {
                "connected": {
                    "duration_us": "2001662",
                    "transitions": "1"
                },
                "disconnected": {
                    "duration_us": "1132231",
                    "transitions": "1"
                },
                "full": {
                    "duration_us": "1148990644768",
                    "transitions": "1"
                },
                "syncing": {
                    "duration_us": "0",
                    "transitions": "0"
                },
                "tracking": {
                    "duration_us": "0",
                    "transitions": "1"
                }
            },
            "time": "2024-Feb-08 13:07:45.987653 UTC",
            "uptime": 1148993,
            "validated_ledger": {
                "age": 0,
                "base_fee_xrp": 1e-05,
                "hash": "3ECA869D047021C6459BD6BDC6C7B03BD3E41C46BDB4B50A09C56F3CD3BE7078",
                "reserve_base_xrp": 10,
                "reserve_inc_xrp": 2,
                "seq": 414624
            },
            "validation_quorum": 3
        }
    },
    "status": "success",
    "type": "response"
}

Supporting Files