forked from Qortal/qortal
Always ignore unsupported services when building the cache.
This commit is contained in:
parent
21f01226e9
commit
7725c5e21f
@ -369,6 +369,11 @@ public class ArbitraryTransaction extends Transaction {
|
|||||||
String name = arbitraryTransactionData.getName();
|
String name = arbitraryTransactionData.getName();
|
||||||
String identifier = arbitraryTransactionData.getIdentifier();
|
String identifier = arbitraryTransactionData.getIdentifier();
|
||||||
|
|
||||||
|
if (service == null) {
|
||||||
|
// Unsupported service - ignore this resource
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// In the cache we store null identifiers as "default", as it is part of the primary key
|
// In the cache we store null identifiers as "default", as it is part of the primary key
|
||||||
if (identifier == null) {
|
if (identifier == null) {
|
||||||
identifier = "default";
|
identifier = "default";
|
||||||
@ -427,6 +432,11 @@ public class ArbitraryTransaction extends Transaction {
|
|||||||
String name = latestTransactionData.getName();
|
String name = latestTransactionData.getName();
|
||||||
String identifier = latestTransactionData.getIdentifier();
|
String identifier = latestTransactionData.getIdentifier();
|
||||||
|
|
||||||
|
if (service == null) {
|
||||||
|
// Unsupported service - ignore this resource
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// In the cache we store null identifiers as "default", as it is part of the primary key
|
// In the cache we store null identifiers as "default", as it is part of the primary key
|
||||||
if (identifier == null) {
|
if (identifier == null) {
|
||||||
identifier = "default";
|
identifier = "default";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user