lib/graphdb/model/tx_in.rb in bitcoin2graphdb-0.2.2 vs lib/graphdb/model/tx_in.rb in bitcoin2graphdb-0.2.3
- old
+ new
@@ -31,9 +31,10 @@
tx_in
end
private
def add_out_point_rel
+ return if self.txid.nil? && self.vout.nil?
tx_out = Graphdb::Model::TxOut.find_by_outpoint(self.txid, self.vout)
if tx_out
self.out_point = tx_out
save!
end
\ No newline at end of file