rpc: remove duplicated type field from gobject list-prepared (#3881)

* rpc: remove duplicated type field from gobject list-prepared

* Remove one more "type"
This commit is contained in:
thephez 2020-12-23 18:27:07 -05:00 committed by GitHub
parent 3e65238a74
commit 4f077caf3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 3 deletions

View File

@ -425,7 +425,6 @@ UniValue CGovernanceObject::ToJson() const
obj.pushKV("collateralHash", GetCollateralHash().ToString());
obj.pushKV("createdAt", GetCreationTime());
obj.pushKV("revision", nRevision);
obj.pushKV("type", nObjectType);
UniValue data;
if (!data.read(GetDataAsPlainString())) {
data.clear();

View File

@ -14,7 +14,6 @@ def validate_object(prepared, rpc_prepared):
assert_equal(prepared["collateralHash"], rpc_prepared["collateralHash"])
assert_equal(prepared["createdAt"], rpc_prepared["createdAt"])
assert_equal(prepared["revision"], rpc_prepared["revision"])
assert_equal(prepared["type"], rpc_prepared["type"])
assert_equal(prepared["hex"], rpc_prepared["data"]["hex"])
del rpc_prepared["data"]["hex"]
assert_equal(prepared["data"], rpc_prepared["data"])
@ -43,7 +42,6 @@ class DashGovernanceTest (DashTestFramework):
"collateralHash": collateral_hash,
"createdAt": proposal_time,
"revision": proposal_rev,
"type": object_type,
"hex": proposal_hex,
"data": proposal_template,
}