Three men on trial for the murder of of a convicted child killer discovered his true identity just hours before they lured him to his death, a court has heard.
David Osbourne, 51, Ieuan Harley, 23, and Darran Evesham, 47, learned David Gaut, 54, had served more than 32 years in prison for murdering toddler Chi Ming Shek in 1985.
Prosecutors allege Mr Gaut was stabbed more than 150 times in a "brutal and gratuitously violent" attack after being lured to his next door neighbour Osbourne's flat by the three defendants.
Osbourne's neighbour Kyle Alford told Newport Crown Court that hours before Mr Gaut's death, he and his partner Samantha Jenkins discovered he was a convicted child killer.
They had read on the Black Kalendar website, which lists British murders, that Mr Gaut had been responsible for the death of the 15-month-old in 1985.
The pair then told other residents at the block of flats in Long Row, New Tredegar, Caerphilly, what they had discovered.
"(I felt) shocked and disgusted really, angry," he told the court.
Mr Alford and Ms Jenkins went to see Osbourne, and told him and Harley what they had found out.
"Ozzy was drunk and Ieuan looked a bit worse for wear. He told me he had been up on amphetamine for two or three days. He looked just like he normally would, a bit more on edge," he said.
"He (Harley) was fuming, we all were really. He was very, very angry. He seemed in control."
Mr Alford told the court Osbourne texted Gaut to "bring him some DVDs and have a conversation about what he had done."
"Ieuan said, 'Let's get him in here to set him up'. Ozzy just sent the text. Ozzy said he didn't want any part of it and was going to hide in the kitchen.
"Me and my partner didn't want anything to do with it and left the premises and went back to our own place."
A short time later Mr Alford sent a text message to Osbourne, saying: "Don't let Dai know we all know he's a baby killer."
A few minutes later, Osbourne replied with: "Okay, bro."
The jury heard that Mr Alford and Ms Jenkins carried out further Google searches about Mr Gaut and the following day Ms Jenkins telephoned the local council.
Asked to explain why, Mr Alford replied: "Sam has children of her own and there was a child murderer living near us and we wanted him away from us."
On August 4, Harley came to Mr Alford's flat and they chatted about Mr Gaut.
He told the court: "He said, 'Don't worry about him, you won't see him again'.
"I thought he just meant he had beaten him up and had been moved away from this area, like he had been from two previous areas."
Earlier, Mr Alford had told the court that Mr Gaut had moved into the flat in Long Row just six weeks before he died.
"He was OK, just friendly," Mr Alford said.
"Straight away, from the first time we met... that he had been released from prison. He said he had killed a soldier."
Mr Alford recalled one conversation he had with Mr Gaut before he died.
"Just the once when me and my partner were ordering a Chinese takeaway and he said he didn't like Chinese but would have a Chi Ming Shek," he told jurors.
"That was the name of the baby that had been murdered."
Ben Douglas-Jones QC, prosecuting, replied: "In other words he was making a joke in relation of ordering a Chinese takeaway, in very poor taste?"
Mr Alford said: "Yes."
Under cross-examination, Mr Alford accepted he was a drug user who was using cannabis, methadone, heroin, benzodiazepine and valium at the time of Mr Gaut's death.
Osborne, from Long Row, Elliots Town, New Tredegar; Harley, of no fixed address; and Evesham, from Powell's Terrace, New Tredegar, all deny the murder of Mr Gaut between August 1 and August 4 last year.
Harley and Evesham also deny a charge of perverting the course of justice, which Osborne admits.