+func (tp *TxPool) addClaimTx(tx *types.Tx) {
+ for key, value := range tx.Entries {
+ switch value.(type) {
+ case *bc.Claim:
+ tp.claimTx[key] = true
+ default:
+ continue
+ }
+ }
+}
+
+func (tp *TxPool) removeClaimTx(tx *types.Tx) {
+ for key, value := range tx.Entries {
+ switch value.(type) {
+ case *bc.Claim:
+ delete(tp.claimTx, key)
+ default:
+ continue
+ }
+ }
+}
+